Signed-off-by: Robbie King <[email protected]>
---
 test/validation/odp_crypto.c | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/test/validation/odp_crypto.c b/test/validation/odp_crypto.c
index fbe5dbb..48c7c09 100644
--- a/test/validation/odp_crypto.c
+++ b/test/validation/odp_crypto.c
@@ -50,3 +50,27 @@ int tests_global_init(void)
 
        return 0;
 }
+
+int tests_global_term(void)
+{
+       odp_pool_t pool;
+       odp_queue_t out_queue;
+
+       out_queue = odp_queue_lookup("crypto-out");
+       if (ODP_QUEUE_INVALID != out_queue) {
+               if (odp_queue_destroy(out_queue))
+                       fprintf(stderr, "Crypto outq destroy failed.\n");
+       } else {
+               fprintf(stderr, "Crypto outq not found.\n");
+       }
+
+       pool = odp_pool_lookup("packet_pool");
+       if (ODP_POOL_INVALID != pool) {
+               if (odp_pool_destroy(pool))
+                       fprintf(stderr, "Packet pool destroy failed.\n");
+       } else {
+               fprintf(stderr, "Packet pool not found.\n");
+       }
+
+       return 0;
+}
-- 
1.9.3


_______________________________________________
lng-odp mailing list
[email protected]
http://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to