test/ring: factorize object checks
authorFeifei Wang <feifei.wang2@arm.com>
Sun, 20 Sep 2020 11:48:55 +0000 (06:48 -0500)
committerDavid Marchand <david.marchand@redhat.com>
Wed, 23 Sep 2020 09:23:10 +0000 (11:23 +0200)
commit6c583103a2d160e1500827a970fbad194bb941c0
tree64685778499898868168d5d242192204d0a5707a
parentf68c206639520c23edb0885416886607d1b8402c
test/ring: factorize object checks

Do code clean up by moving repeated code inside 'test_ring_mem_cmp'
function to validate data and print information of enqueue/dequeue
elements if validation fails.

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