diff mbox series

[v1,1/1] test: validation: correct comparison in packet_test_ref()

Message ID 1513875620-25193-2-git-send-email-odpbot@yandex.ru
State New
Headers show
Series [v1,1/1] test: validation: correct comparison in packet_test_ref() | expand

Commit Message

Github ODP bot Dec. 21, 2017, 5 p.m. UTC
From: Bill Fischofer <bill.fischofer@linaro.org>


Fix typo in CU_ASSERT() that used an assignment instead of a
comparison in testing reference length.

This fixes Bug https://bugs.linaro.org/show_bug.cgi?id=3466

Signed-off-by: Bill Fischofer <bill.fischofer@linaro.org>

---
/** Email created from pull request 361 (Bill-Fischofer-Linaro:bug3466)
 ** https://github.com/Linaro/odp/pull/361
 ** Patch: https://github.com/Linaro/odp/pull/361.patch
 ** Base sha: 4c4052f894b8df5784d2aae2e36b96796ee020fd
 ** Merge commit sha: f771c96d7492d0741d57af3e3b9888f0cac1c756
 **/
 test/validation/api/packet/packet.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/test/validation/api/packet/packet.c b/test/validation/api/packet/packet.c
index 9318dfc70..241681df1 100644
--- a/test/validation/api/packet/packet.c
+++ b/test/validation/api/packet/packet.c
@@ -2354,7 +2354,7 @@  void packet_test_ref(void)
 	ref_pkt[0] = odp_packet_ref(base_pkt, offset[0]);
 	CU_ASSERT_FATAL(ref_pkt[0] != ODP_PACKET_INVALID);
 	ref_len[0] = odp_packet_len(ref_pkt[0]);
-	CU_ASSERT(ref_len[0] = odp_packet_len(base_pkt) - offset[0]);
+	CU_ASSERT(ref_len[0] == odp_packet_len(base_pkt) - offset[0]);
 
 	CU_ASSERT(odp_packet_push_head(base_pkt,
 				       base_hr - base_hr / 2) != NULL);