mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
tests/gnrc_sock_{ip,udp}: adapt tests for sock_*_recv_buf API change
This commit is contained in:
parent
d934579817
commit
e4c43200ba
@ -360,7 +360,9 @@ static void test_sock_ip_recv_buf__success(void)
|
|||||||
NULL));
|
NULL));
|
||||||
assert(data != NULL);
|
assert(data != NULL);
|
||||||
assert(ctx != NULL);
|
assert(ctx != NULL);
|
||||||
sock_recv_buf_free(ctx);
|
assert(0 == sock_ip_recv_buf(&_sock, &data, &ctx, SOCK_NO_TIMEOUT, NULL));
|
||||||
|
assert(data == NULL);
|
||||||
|
assert(ctx == NULL);
|
||||||
assert(_check_net());
|
assert(_check_net());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -441,7 +441,9 @@ static void test_sock_udp_recv_buf__success(void)
|
|||||||
SOCK_NO_TIMEOUT, NULL));
|
SOCK_NO_TIMEOUT, NULL));
|
||||||
assert(data != NULL);
|
assert(data != NULL);
|
||||||
assert(ctx != NULL);
|
assert(ctx != NULL);
|
||||||
sock_recv_buf_free(ctx);
|
assert(0 == sock_udp_recv_buf(&_sock, &data, &ctx, SOCK_NO_TIMEOUT, NULL));
|
||||||
|
assert(data == NULL);
|
||||||
|
assert(ctx == NULL);
|
||||||
assert(_check_net());
|
assert(_check_net());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user