diff mbox

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

Message ID 1425855170-4191-7-git-send-email-bill.fischofer@linaro.org
State Accepted
Commit 15141df9df9c266ad94ac96862e200c30c71a447
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_shm.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

diff --git a/test/validation/odp_shm.c b/test/validation/odp_shm.c
index 1ad00ba..938ae65 100644
--- a/test/validation/odp_shm.c
+++ b/test/validation/odp_shm.c
@@ -52,6 +52,7 @@  static void test_odp_shm_sunnyday(void)
 	shm = odp_shm_reserve(TESTNAME,
 			      sizeof(test_shared_data_t), ALIGE_SIZE, 0);
 	CU_ASSERT(ODP_SHM_INVALID != shm);
+	CU_ASSERT(odp_shm_to_u64(shm) != odp_shm_to_u64(ODP_SHM_INVALID));
 
 	CU_ASSERT(0 == odp_shm_free(shm));
 	CU_ASSERT(ODP_SHM_INVALID == odp_shm_lookup(TESTNAME));