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

Merge pull request #8177 from smlng/fix/unittests/gnrc_ipv6_nib

unittests: fix gnrc_ipv6_nib test
This commit is contained in:
Martine Lenders 2017-11-29 21:58:44 +01:00 committed by GitHub
commit 639e65bc0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -483,7 +483,7 @@ static void test_nib_nc_add__success_full_but_garbage_collectible(void)
for (int i = 0; i < (3 * GNRC_IPV6_NIB_NUMOF); i++) {
TEST_ASSERT_NOT_NULL((node = _nib_nc_add(&addr, IFACE,
GNRC_IPV6_NIB_NC_INFO_NUD_STATE_REACHABLE)));
GNRC_IPV6_NIB_NC_INFO_NUD_STATE_STALE)));
TEST_ASSERT(last != node);
TEST_ASSERT(ipv6_addr_equal(&addr, &node->ipv6));
TEST_ASSERT_EQUAL_INT(IFACE, _nib_onl_get_if(node));
@ -1789,7 +1789,7 @@ static void test_nib_abr_add_pfx__pfx_not_in_nib(void)
static const ipv6_addr_t addr = { .u64 = { { .u8 = GLOBAL_PREFIX },
{ .u64 = TEST_UINT64 } } };
_nib_offl_entry_t offl;
offl.mode = _PL;
TEST_ASSERT_NOT_NULL((abr = _nib_abr_add(&addr)));
TEST_ASSERT_NULL(_nib_abr_iter_pfx(abr, NULL));
_nib_abr_add_pfx(abr, &offl);

View File

@ -107,9 +107,9 @@ static void test_nib_nc_set__ENOMEM_diff_addr_iface(void)
static void test_nib_nc_set__success(void)
{
void *iter_state = NULL;
ipv6_addr_t addr = { .u64 = { { .u8 = GLOBAL_PREFIX },
{ .u64 = TEST_UINT64 } } };
uint8_t l2addr[] = L2ADDR;
static const ipv6_addr_t addr = { .u64 = { { .u8 = GLOBAL_PREFIX },
{ .u64 = TEST_UINT64 } } };
static const uint8_t l2addr[] = L2ADDR;
gnrc_ipv6_nib_nc_t nce;
TEST_ASSERT_EQUAL_INT(0, gnrc_ipv6_nib_nc_set(&addr, IFACE, l2addr,
@ -188,7 +188,7 @@ static void test_nib_nc_del__success(void)
void *iter_state = NULL;
static const ipv6_addr_t addr = { .u64 = { { .u8 = GLOBAL_PREFIX },
{ .u64 = TEST_UINT64 } } };
uint8_t l2addr[] = L2ADDR;
static const uint8_t l2addr[] = L2ADDR;
gnrc_ipv6_nib_nc_t nce;
TEST_ASSERT_EQUAL_INT(0, gnrc_ipv6_nib_nc_set(&addr, IFACE, l2addr,