@@ -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);
Signed-off-by: Bill Fischofer <bill.fischofer@linaro.org> --- test/validation/queue/queue.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)