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:
parent
04b7ea59fd
commit
d2e57ac941
@ -69,10 +69,11 @@ void _tests_init(void)
|
|||||||
);
|
);
|
||||||
_mock_netif = &_netif;
|
_mock_netif = &_netif;
|
||||||
expect(res == 0);
|
expect(res == 0);
|
||||||
|
|
||||||
gnrc_ipv6_nib_init();
|
gnrc_ipv6_nib_init();
|
||||||
gnrc_netif_acquire(_mock_netif);
|
|
||||||
gnrc_ipv6_nib_init_iface(_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
|
/* we do not want to test for SLAAC here so just assure the configured
|
||||||
* address is valid */
|
* address is valid */
|
||||||
expect(!ipv6_addr_is_unspecified(&_mock_netif->ipv6.addrs[0]));
|
expect(!ipv6_addr_is_unspecified(&_mock_netif->ipv6.addrs[0]));
|
||||||
|
@ -39,9 +39,8 @@ void _common_set_up(void)
|
|||||||
{
|
{
|
||||||
expect(_mock_netif != NULL);
|
expect(_mock_netif != NULL);
|
||||||
gnrc_ipv6_nib_init();
|
gnrc_ipv6_nib_init();
|
||||||
gnrc_netif_acquire(_mock_netif);
|
|
||||||
gnrc_ipv6_nib_init_iface(_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)
|
int _get_device_type(netdev_t *dev, void *value, size_t max_len)
|
||||||
|
@ -39,9 +39,8 @@ void _common_set_up(void)
|
|||||||
{
|
{
|
||||||
expect(_mock_netif != NULL);
|
expect(_mock_netif != NULL);
|
||||||
gnrc_ipv6_nib_init();
|
gnrc_ipv6_nib_init();
|
||||||
gnrc_netif_acquire(_mock_netif);
|
|
||||||
gnrc_ipv6_nib_init_iface(_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)
|
int _get_device_type(netdev_t *dev, void *value, size_t max_len)
|
||||||
|
@ -310,6 +310,7 @@ static void _set_up(void)
|
|||||||
sizeof(_mock_netif->ipv6.addrs_flags));
|
sizeof(_mock_netif->ipv6.addrs_flags));
|
||||||
gnrc_ipv6_nib_init();
|
gnrc_ipv6_nib_init();
|
||||||
gnrc_ipv6_nib_init_iface(_mock_netif);
|
gnrc_ipv6_nib_init_iface(_mock_netif);
|
||||||
|
gnrc_ipv6_nib_iface_up(_mock_netif);
|
||||||
/* re-init for syncing */
|
/* re-init for syncing */
|
||||||
mutex_init(&_target_buf_filled);
|
mutex_init(&_target_buf_filled);
|
||||||
mutex_lock(&_target_buf_filled);
|
mutex_lock(&_target_buf_filled);
|
||||||
|
@ -38,9 +38,8 @@ void _common_set_up(void)
|
|||||||
{
|
{
|
||||||
expect(_mock_netif != NULL);
|
expect(_mock_netif != NULL);
|
||||||
gnrc_ipv6_nib_init();
|
gnrc_ipv6_nib_init();
|
||||||
gnrc_netif_acquire(_mock_netif);
|
|
||||||
gnrc_ipv6_nib_init_iface(_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)
|
int _get_device_type(netdev_t *dev, void *value, size_t max_len)
|
||||||
|
@ -340,6 +340,7 @@ static void _set_up(void)
|
|||||||
sizeof(_mock_netif->ipv6.addrs_flags));
|
sizeof(_mock_netif->ipv6.addrs_flags));
|
||||||
gnrc_ipv6_nib_init();
|
gnrc_ipv6_nib_init();
|
||||||
gnrc_ipv6_nib_init_iface(_mock_netif);
|
gnrc_ipv6_nib_init_iface(_mock_netif);
|
||||||
|
gnrc_ipv6_nib_iface_up(_mock_netif);
|
||||||
/* re-init for syncing */
|
/* re-init for syncing */
|
||||||
mutex_init(&_target_buf_filled);
|
mutex_init(&_target_buf_filled);
|
||||||
mutex_lock(&_target_buf_filled);
|
mutex_lock(&_target_buf_filled);
|
||||||
|
@ -38,9 +38,8 @@ void _common_set_up(void)
|
|||||||
{
|
{
|
||||||
expect(_mock_netif != NULL);
|
expect(_mock_netif != NULL);
|
||||||
gnrc_ipv6_nib_init();
|
gnrc_ipv6_nib_init();
|
||||||
gnrc_netif_acquire(_mock_netif);
|
|
||||||
gnrc_ipv6_nib_init_iface(_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)
|
int _get_device_type(netdev_t *dev, void *value, size_t max_len)
|
||||||
|
Loading…
Reference in New Issue
Block a user