This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "".
The branch, master has been updated via ce61337e6a7e955913fa64412c75d2066e0f121c (commit) from c7014b4848c276c17dcdddab103ce88b3eb29235 (commit)
Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below.
- Log ----------------------------------------------------------------- commit ce61337e6a7e955913fa64412c75d2066e0f121c Author: Balakrishna Garapati balakrishna.garapati@linaro.org Date: Wed Mar 29 10:15:17 2017 +0200
validation: packet: do assert on newly created pkt reference
Signed-off-by: Balakrishna Garapati balakrishna.garapati@linaro.org Reviewed-by: Bill Fischofer bill.fischofer@linaro.org Signed-off-by: Maxim Uvarov maxim.uvarov@linaro.org
diff --git a/test/common_plat/validation/api/packet/packet.c b/test/common_plat/validation/api/packet/packet.c index 669122a..2ffd924 100644 --- a/test/common_plat/validation/api/packet/packet.c +++ b/test/common_plat/validation/api/packet/packet.c @@ -2234,12 +2234,15 @@ void packet_test_ref(void)
/* Create references */ ref_pkt[0] = odp_packet_ref(segmented_base_pkt, offset[0]); + CU_ASSERT_FATAL(ref_pkt[0] != ODP_PACKET_INVALID); + if (odp_packet_has_ref(ref_pkt[0]) == 1) { /* CU_ASSERT needs braces */ CU_ASSERT(odp_packet_has_ref(segmented_base_pkt) == 1); }
ref_pkt[1] = odp_packet_ref(segmented_base_pkt, offset[1]); + CU_ASSERT_FATAL(ref_pkt[1] != ODP_PACKET_INVALID);
if (odp_packet_has_ref(ref_pkt[1]) == 1) { /* CU_ASSERT needs braces */
-----------------------------------------------------------------------
Summary of changes: test/common_plat/validation/api/packet/packet.c | 3 +++ 1 file changed, 3 insertions(+)
hooks/post-receive