diff mbox

[API-NEXT,PATCHv2,3/3] validation: packet: use true == non-zero per ODP API Guidelines

Message ID 1426875244-23072-3-git-send-email-bill.fischofer@linaro.org
State Accepted
Commit dfb5a60dc2e363c2040c8fd8b734e1b84ff5cc5c
Headers show

Commit Message

Bill Fischofer March 20, 2015, 6:14 p.m. UTC
This change addresses Bug https://bugs.linaro.org/show_bug.cgi?id=1334

Signed-off-by: Bill Fischofer <bill.fischofer@linaro.org>
---
 test/validation/odp_packet.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/test/validation/odp_packet.c b/test/validation/odp_packet.c
index 8f764bf..0c1d069 100644
--- a/test/validation/odp_packet.c
+++ b/test/validation/odp_packet.c
@@ -425,7 +425,7 @@  do { \
 	odp_packet_has_##flag##_set(packet, 0);           \
 	CU_ASSERT(odp_packet_has_##flag(packet) == 0);    \
 	odp_packet_has_##flag##_set(packet, 1);           \
-	CU_ASSERT(odp_packet_has_##flag(packet) == 1);    \
+	CU_ASSERT(odp_packet_has_##flag(packet) != 0);    \
 } while (0)
 
 static void packet_in_flags(void)