validation: queue: clean up test toenable clean termination

Message ID 1424743729-20998-1-git-send-email-bill.fischofer@linaro.org
State New
Headers show

Commit Message

Bill Fischofer Feb. 24, 2015, 2:08 a.m.
Signed-off-by: Bill Fischofer <bill.fischofer@linaro.org>
---
 test/validation/odp_queue.c | 4 ++++
 1 file changed, 4 insertions(+)

Patch

diff --git a/test/validation/odp_queue.c b/test/validation/odp_queue.c
index 91a32dc..1808055 100644
--- a/test/validation/odp_queue.c
+++ b/test/validation/odp_queue.c
@@ -103,6 +103,10 @@  static void test_odp_queue_sunnyday(void)
 		odp_buffer_free(enbuf);
 	}
 
+	/* Cleanup test by destroying the queue and pool we created */
+	CU_ASSERT_EQUAL(odp_queue_destroy(queue_id), 0);
+	CU_ASSERT_EQUAL(odp_pool_destroy(msg_pool), 0);
+
 	return;
 }