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

tests: call gnrc_ipv6_nib_iface_up() after gnrc_ipv6_nib_init_iface()

This commit is contained in:
Benjamin Valentin 2022-09-23 15:18:23 +02:00
parent 04b7ea59fd
commit d2e57ac941
7 changed files with 9 additions and 10 deletions

View File

@ -69,10 +69,11 @@ void _tests_init(void)
);
_mock_netif = &_netif;
expect(res == 0);
gnrc_ipv6_nib_init();
gnrc_netif_acquire(_mock_netif);
gnrc_ipv6_nib_init_iface(_mock_netif);
gnrc_netif_release(_mock_netif);
gnrc_ipv6_nib_iface_up(_mock_netif);
/* we do not want to test for SLAAC here so just assure the configured
* address is valid */
expect(!ipv6_addr_is_unspecified(&_mock_netif->ipv6.addrs[0]));

View File

@ -39,9 +39,8 @@ void _common_set_up(void)
{
expect(_mock_netif != NULL);
gnrc_ipv6_nib_init();
gnrc_netif_acquire(_mock_netif);
gnrc_ipv6_nib_init_iface(_mock_netif);
gnrc_netif_release(_mock_netif);
gnrc_ipv6_nib_iface_up(_mock_netif);
}
int _get_device_type(netdev_t *dev, void *value, size_t max_len)

View File

@ -39,9 +39,8 @@ void _common_set_up(void)
{
expect(_mock_netif != NULL);
gnrc_ipv6_nib_init();
gnrc_netif_acquire(_mock_netif);
gnrc_ipv6_nib_init_iface(_mock_netif);
gnrc_netif_release(_mock_netif);
gnrc_ipv6_nib_iface_up(_mock_netif);
}
int _get_device_type(netdev_t *dev, void *value, size_t max_len)

View File

@ -310,6 +310,7 @@ static void _set_up(void)
sizeof(_mock_netif->ipv6.addrs_flags));
gnrc_ipv6_nib_init();
gnrc_ipv6_nib_init_iface(_mock_netif);
gnrc_ipv6_nib_iface_up(_mock_netif);
/* re-init for syncing */
mutex_init(&_target_buf_filled);
mutex_lock(&_target_buf_filled);

View File

@ -38,9 +38,8 @@ void _common_set_up(void)
{
expect(_mock_netif != NULL);
gnrc_ipv6_nib_init();
gnrc_netif_acquire(_mock_netif);
gnrc_ipv6_nib_init_iface(_mock_netif);
gnrc_netif_release(_mock_netif);
gnrc_ipv6_nib_iface_up(_mock_netif);
}
int _get_device_type(netdev_t *dev, void *value, size_t max_len)

View File

@ -340,6 +340,7 @@ static void _set_up(void)
sizeof(_mock_netif->ipv6.addrs_flags));
gnrc_ipv6_nib_init();
gnrc_ipv6_nib_init_iface(_mock_netif);
gnrc_ipv6_nib_iface_up(_mock_netif);
/* re-init for syncing */
mutex_init(&_target_buf_filled);
mutex_lock(&_target_buf_filled);

View File

@ -38,9 +38,8 @@ void _common_set_up(void)
{
expect(_mock_netif != NULL);
gnrc_ipv6_nib_init();
gnrc_netif_acquire(_mock_netif);
gnrc_ipv6_nib_init_iface(_mock_netif);
gnrc_netif_release(_mock_netif);
gnrc_ipv6_nib_iface_up(_mock_netif);
}
int _get_device_type(netdev_t *dev, void *value, size_t max_len)