diff mbox series

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

Message ID 1511272811-6276-4-git-send-email-odpbot@yandex.ru
State Superseded
Headers show
Series [API-NEXT,v1,1/3] api: queue: blocking level parameter | expand

Commit Message

Github ODP bot Nov. 21, 2017, 2 p.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: d4b364849c4abb4c71e0c5260e1a793ebb8dc97d
 ** Merge commit sha: fc00736d09bd0388db2bde3a9177edfd995eec67
 **/
 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..6b4877d9a 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.blocking_level >= ODP_BLOCKING);
+	CU_ASSERT(capa.sched.blocking_level >= 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.blocking_level == ODP_BLOCKING);
 
 	for (j = 0; j < 2; j++) {
 		if (j == 0) {