diff mbox

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

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

Patch

diff --git a/test/validation/odp_pktio.c b/test/validation/odp_pktio.c
index 8df367d..d473315 100644
--- a/test/validation/odp_pktio.c
+++ b/test/validation/odp_pktio.c
@@ -223,6 +223,8 @@  static odp_pktio_t create_pktio(const char *iface)
 	if (pktio == ODP_PKTIO_INVALID)
 		pktio = odp_pktio_lookup(iface);
 	CU_ASSERT(pktio != ODP_PKTIO_INVALID);
+	CU_ASSERT(odp_pktio_to_u64(pktio) !=
+		  odp_pktio_to_u64(ODP_PKTIO_INVALID));
 
 	return pktio;
 }