diff mbox

[PATCHv3,6/7] validation: pool: add unit tests for strong type display functions

Message ID 1425855170-4191-6-git-send-email-bill.fischofer@linaro.org
State Accepted
Commit 2402116be66ed09a74c7eb930e41b5acfc746831
Headers show

Commit Message

Bill Fischofer March 8, 2015, 10:52 p.m. UTC
Signed-off-by: Bill Fischofer <bill.fischofer@linaro.org>
---
 test/validation/odp_pool.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox

Patch

diff --git a/test/validation/odp_pool.c b/test/validation/odp_pool.c
index c433380..1a518a0 100644
--- a/test/validation/odp_pool.c
+++ b/test/validation/odp_pool.c
@@ -21,6 +21,8 @@  static void pool_create_destroy(odp_pool_param_t *params)
 
 	pool = odp_pool_create(pool_name, ODP_SHM_INVALID, params);
 	CU_ASSERT_FATAL(pool != ODP_POOL_INVALID);
+	CU_ASSERT(odp_pool_to_u64(pool) !=
+		  odp_pool_to_u64(ODP_POOL_INVALID));
 	CU_ASSERT(odp_pool_destroy(pool) == 0);
 }