From 4f5dab16b773adf227c43d90591626ea996c7ff7 Mon Sep 17 00:00:00 2001 From: Gunar Schorcht Date: Tue, 25 Feb 2020 09:26:38 +0100 Subject: [PATCH] tests/unittests/tests-gnrc_ipv6: fix NDEBUG compile problem --- tests/unittests/tests-gnrc_ipv6/tests-gnrc_ipv6.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/tests/unittests/tests-gnrc_ipv6/tests-gnrc_ipv6.c b/tests/unittests/tests-gnrc_ipv6/tests-gnrc_ipv6.c index b8baa8743a..014eee08fb 100644 --- a/tests/unittests/tests-gnrc_ipv6/tests-gnrc_ipv6.c +++ b/tests/unittests/tests-gnrc_ipv6/tests-gnrc_ipv6.c @@ -21,6 +21,7 @@ #include "net/gnrc/pktbuf.h" #include "unittests-constants.h" +#include "test_utils/expect.h" #include "tests-gnrc_ipv6.h" #define DEFAULT_TEST_SRC { { \ @@ -56,16 +57,16 @@ static void set_up(void) gnrc_pktbuf_init(); _pkt_w_ip_hdr = gnrc_pktbuf_add(NULL, NULL, 1, GNRC_NETTYPE_NETIF); - assert(_pkt_w_ip_hdr); + expect(_pkt_w_ip_hdr); _pkt_w_ip_hdr = gnrc_pktbuf_add(_pkt_w_ip_hdr, &ip, sizeof(ipv6_hdr_t), GNRC_NETTYPE_IPV6); - assert(_pkt_w_ip_hdr); + expect(_pkt_w_ip_hdr); _pkt_w_ip_hdr = gnrc_pktbuf_add(_pkt_w_ip_hdr, NULL, 1, GNRC_NETTYPE_UNDEF); - assert(_pkt_w_ip_hdr); + expect(_pkt_w_ip_hdr); _pkt_no_ip_hdr = gnrc_pktbuf_add(NULL, NULL, 1, GNRC_NETTYPE_NETIF); - assert(_pkt_no_ip_hdr); + expect(_pkt_no_ip_hdr); _pkt_no_ip_hdr = gnrc_pktbuf_add(_pkt_no_ip_hdr, NULL, 1, GNRC_NETTYPE_UNDEF); - assert(_pkt_no_ip_hdr); + expect(_pkt_no_ip_hdr); } static void tear_down(void)