diff mbox series

[API-NEXT,v12,7/8] test: validation: queue: change order lock data type

Message ID 1505458814-11509-8-git-send-email-odpbot@yandex.ru
State Superseded
Headers show
Series [API-NEXT,v12,1/8] api: queue: change order lock count data type | expand

Commit Message

Github ODP bot Sept. 15, 2017, 7 a.m. UTC
From: Balasubramanian Manoharan <bala.manoharan@linaro.org>


change oder lock count data type from unsigned to uint32_t

Signed-off-by: Balasubramanian Manoharan <bala.manoharan@linaro.org>

---
/** Email created from pull request 160 (bala-manoharan:api_sched_order_lock)
 ** https://github.com/Linaro/odp/pull/160
 ** Patch: https://github.com/Linaro/odp/pull/160.patch
 ** Base sha: 6b6253c30f88c80bf632436ff06c1b000860a2f1
 ** Merge commit sha: 8654cc5ecbcd8f0299a0c56a1e2ff23ba87c1d67
 **/
 test/common_plat/validation/api/queue/queue.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
diff mbox series

Patch

diff --git a/test/common_plat/validation/api/queue/queue.c b/test/common_plat/validation/api/queue/queue.c
index 94d0a2fd8..1ec05b1fc 100644
--- a/test/common_plat/validation/api/queue/queue.c
+++ b/test/common_plat/validation/api/queue/queue.c
@@ -267,9 +267,9 @@  void queue_test_info(void)
 	odp_queue_capability_t capability;
 	char q_plain_ctx[] = "test_q_plain context data";
 	char q_order_ctx[] = "test_q_order context data";
-	unsigned lock_count;
+	uint32_t lock_count;
 	char *ctx;
-	int ret;
+	uint32_t ret;
 
 	/* Create a plain queue and set context */
 	q_plain = odp_queue_create(nq_plain, NULL);
@@ -314,8 +314,8 @@  void queue_test_info(void)
 	CU_ASSERT(info.param.sched.sync == odp_queue_sched_type(q_order));
 	CU_ASSERT(info.param.sched.group == odp_queue_sched_group(q_order));
 	ret = odp_queue_lock_count(q_order);
-	CU_ASSERT(ret >= 0);
-	lock_count = (unsigned)ret;
+	CU_ASSERT(ret > 0);
+	lock_count = ret;
 	CU_ASSERT(info.param.sched.lock_count == lock_count);
 
 	CU_ASSERT(odp_queue_destroy(q_plain) == 0);