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 |
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);