diff mbox series

[API-NEXT,v2,3/3] validation: queue: refer to blocking level

Message ID 1512039613-7090-4-git-send-email-odpbot@yandex.ru
State New
Headers show
Series [API-NEXT,v2,1/3] api: queue: non-blocking level parameter | expand

Commit Message

Github ODP bot Nov. 30, 2017, 11 a.m. UTC
From: Petri Savolainen <petri.savolainen@linaro.org>


Refer to the new blocking level capability and parameter
fields to check that those exist.

Signed-off-by: Petri Savolainen <petri.savolainen@linaro.org>

---
/** Email created from pull request 302 (psavol:next-lockfree-queue)
 ** https://github.com/Linaro/odp/pull/302
 ** Patch: https://github.com/Linaro/odp/pull/302.patch
 ** Base sha: 4cb02e1caccb9179575e95448fd46979e17d0905
 ** Merge commit sha: 2fb581ec76ff776f788da097894cb3f6b63ae23d
 **/
 test/validation/api/queue/queue.c | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

diff --git a/test/validation/api/queue/queue.c b/test/validation/api/queue/queue.c
index 1ec05b1fc..3c6db33ab 100644
--- a/test/validation/api/queue/queue.c
+++ b/test/validation/api/queue/queue.c
@@ -69,6 +69,8 @@  void queue_test_capa(void)
 	CU_ASSERT(capa.sched_prios != 0);
 	CU_ASSERT(capa.plain.max_num != 0);
 	CU_ASSERT(capa.sched.max_num != 0);
+	CU_ASSERT(capa.plain.nonblocking >= ODP_BLOCKING);
+	CU_ASSERT(capa.sched.nonblocking >= ODP_BLOCKING);
 
 	min = capa.plain.max_num;
 	if (min > capa.sched.max_num)
@@ -82,6 +84,7 @@  void queue_test_capa(void)
 	name[ODP_QUEUE_NAME_LEN - 1] = 0;
 
 	odp_queue_param_init(&qparams);
+	CU_ASSERT(qparams.nonblocking == ODP_BLOCKING);
 
 	for (j = 0; j < 2; j++) {
 		if (j == 0) {