1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

tests/lwip_sock_udp: fix compilation with NDEBUG

This commit is contained in:
Gunar Schorcht 2020-06-26 09:46:40 +02:00
parent cae2448aad
commit 8cd0aef67e

View File

@ -436,14 +436,14 @@ static void test_sock_udp_recv_buf4__success(void)
expect(_inject_4packet(_TEST_ADDR4_REMOTE, _TEST_ADDR4_LOCAL, _TEST_PORT_REMOTE,
_TEST_PORT_LOCAL, "ABCD", sizeof("ABCD"),
_TEST_NETIF));
assert(sizeof("ABCD") == sock_udp_recv_buf(&_sock, &data, &ctx,
expect(sizeof("ABCD") == sock_udp_recv_buf(&_sock, &data, &ctx,
SOCK_NO_TIMEOUT, NULL));
assert(data != NULL);
assert(ctx != NULL);
assert(0 == sock_udp_recv_buf(&_sock, &data, &ctx, SOCK_NO_TIMEOUT, NULL));
assert(data == NULL);
assert(ctx == NULL);
assert(_check_net());
expect(data != NULL);
expect(ctx != NULL);
expect(0 == sock_udp_recv_buf(&_sock, &data, &ctx, SOCK_NO_TIMEOUT, NULL));
expect(data == NULL);
expect(ctx == NULL);
expect(_check_net());
}
static void test_sock_udp_send4__EAFNOSUPPORT(void)
@ -1128,18 +1128,18 @@ static void test_sock_udp_recv_buf6__success(void)
.port = _TEST_PORT_REMOTE };
void *data = NULL, *ctx = NULL;
assert(0 == sock_udp_create(&_sock, &local, &remote, SOCK_FLAGS_REUSE_EP));
assert(_inject_6packet(&src_addr, &dst_addr, _TEST_PORT_REMOTE,
expect(0 == sock_udp_create(&_sock, &local, &remote, SOCK_FLAGS_REUSE_EP));
expect(_inject_6packet(&src_addr, &dst_addr, _TEST_PORT_REMOTE,
_TEST_PORT_LOCAL, "ABCD", sizeof("ABCD"),
_TEST_NETIF));
assert(sizeof("ABCD") == sock_udp_recv_buf(&_sock, &data, &ctx, SOCK_NO_TIMEOUT,
expect(sizeof("ABCD") == sock_udp_recv_buf(&_sock, &data, &ctx, SOCK_NO_TIMEOUT,
NULL));
assert(data != NULL);
assert(ctx != NULL);
assert(0 == sock_udp_recv_buf(&_sock, &data, &ctx, SOCK_NO_TIMEOUT, NULL));
assert(data == NULL);
assert(ctx == NULL);
assert(_check_net());
expect(data != NULL);
expect(ctx != NULL);
expect(0 == sock_udp_recv_buf(&_sock, &data, &ctx, SOCK_NO_TIMEOUT, NULL));
expect(data == NULL);
expect(ctx == NULL);
expect(_check_net());
}
static void test_sock_udp_send6__EAFNOSUPPORT(void)