test/ring: check dequeued object for single element
authorFeifei Wang <feifei.wang2@arm.com>
Sun, 20 Sep 2020 11:48:53 +0000 (06:48 -0500)
committerDavid Marchand <david.marchand@redhat.com>
Wed, 23 Sep 2020 09:23:08 +0000 (11:23 +0200)
commitc570da3671d5d1b80c41c994e6672066c6e5b4a6
tree6b2c2b8af829709a435a16dedc698c8296284265
parentd943c60565c04e1143acf36d6c2abca1152bd36d
test/ring: check dequeued object for single element

Add check in test_ring_basic_ex and test_ring_with_exact_size for single
element enqueue and dequeue operations to validate the dequeued objects.

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