1
0
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:
Martine S. Lenders 2020-04-01 13:52:14 +02:00
parent d934579817
commit e4c43200ba
No known key found for this signature in database
GPG Key ID: CCD317364F63286F
2 changed files with 6 additions and 2 deletions

View File

@ -360,7 +360,9 @@ static void test_sock_ip_recv_buf__success(void)
NULL));
assert(data != 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());
}

View File

@ -441,7 +441,9 @@ static void test_sock_udp_recv_buf__success(void)
SOCK_NO_TIMEOUT, NULL));
assert(data != 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());
}