diff mbox

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

Message ID 1425855170-4191-3-git-send-email-bill.fischofer@linaro.org
State Accepted
Commit 5930f898dec700080c3896fef087960265b2b27b
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_buffer.c | 3 +++
 1 file changed, 3 insertions(+)
diff mbox

Patch

diff --git a/test/validation/odp_buffer.c b/test/validation/odp_buffer.c
index 5ee708e..f2c0c9b 100644
--- a/test/validation/odp_buffer.c
+++ b/test/validation/odp_buffer.c
@@ -136,6 +136,9 @@  static void buffer_management_basic(void)
 	CU_ASSERT(odp_buffer_size(raw_buffer) >= raw_buffer_size);
 	CU_ASSERT(odp_buffer_addr(raw_buffer) != NULL);
 	odp_buffer_print(raw_buffer);
+	CU_ASSERT(odp_buffer_to_u64(raw_buffer) !=
+		  odp_buffer_to_u64(ODP_BUFFER_INVALID));
+	CU_ASSERT(odp_event_to_u64(ev) != odp_event_to_u64(ODP_EVENT_INVALID));
 }
 
 static CU_TestInfo buffer_tests[] = {