diff mbox

[API-NEXT,3/3] validation: queue: allow for anonymous queues

Message ID 1436821890-6964-3-git-send-email-bill.fischofer@linaro.org
State New
Headers show

Commit Message

Bill Fischofer July 13, 2015, 9:11 p.m. UTC
Signed-off-by: Bill Fischofer <bill.fischofer@linaro.org>
---
 test/validation/queue/queue.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
diff mbox

Patch

diff --git a/test/validation/queue/queue.c b/test/validation/queue/queue.c
index ef7c8f2..480b3aa 100644
--- a/test/validation/queue/queue.c
+++ b/test/validation/queue/queue.c
@@ -40,7 +40,7 @@  static int queue_suite_term(void)
 
 static void queue_test_sunnydays(void)
 {
-	odp_queue_t queue_creat_id, queue_id;
+	odp_queue_t queue_creat_id, queue_anon_id, queue_id;
 	odp_event_t enev[MAX_BUFFER_QUEUE];
 	odp_event_t deev[MAX_BUFFER_QUEUE];
 	odp_buffer_t buf;
@@ -52,6 +52,10 @@  static void queue_test_sunnydays(void)
 	int max_iteration = CONFIG_MAX_ITERATION;
 	void *prtn = NULL;
 
+	queue_anon_id = odp_queue_create(NULL, ODP_QUEUE_TYPE_POLL, NULL);
+	CU_ASSERT(ODP_QUEUE_INVALID != queue_anon_id);
+	CU_ASSERT(odp_queue_destroy(queue_anon_id) == 0);
+
 	queue_creat_id = odp_queue_create("test_queue",
 					  ODP_QUEUE_TYPE_POLL, NULL);
 	CU_ASSERT(ODP_QUEUE_INVALID != queue_creat_id);