test/ring: fix dequeued object checks
authorFeifei Wang <feifei.wang2@arm.com>
Sun, 20 Sep 2020 11:48:52 +0000 (06:48 -0500)
committerDavid Marchand <david.marchand@redhat.com>
Wed, 23 Sep 2020 06:53:33 +0000 (08:53 +0200)
commitd943c60565c04e1143acf36d6c2abca1152bd36d
tree3c699813923d12f9261196398b701eb35ecf8f01
parentf642148eea7c63ab0cfe7ef783657bd9db83518e
test/ring: fix dequeued object checks

When using memcmp function to check data, the third param should be the
size of all elements, rather than the number of the elements.

Fixes: a9fe152363e2 ("test/ring: add custom element size functional tests")
Cc: stable@dpdk.org
Signed-off-by: Feifei Wang <feifei.wang2@arm.com>
Reviewed-by: Ruifeng Wang <ruifeng.wang@arm.com>
Reviewed-by: Phil Yang <phil.yang@arm.com>
Reviewed-by: Dharmik Thakkar <dharmik.thakkar@arm.com>
Reviewed-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
app/test/test_ring.c