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

tests/gnrc_netif: Adapt test to new interface names

This commit is contained in:
Leandro Lanzieri 2019-11-08 16:25:44 +01:00
parent 8aa66e94ea
commit cb28400bce

View File

@ -1131,7 +1131,7 @@ static void test_netif_get_name(void)
TEST_ASSERT_NOT_NULL(netif);
res = netif_get_name(netif, name);
sprintf(exp_name, "if%d", (int) ((gnrc_netif_t *)netif)->pid);
sprintf(exp_name, "%d", (int) ((gnrc_netif_t *)netif)->pid);
TEST_ASSERT_EQUAL_INT(strlen(exp_name), res);
TEST_ASSERT_EQUAL_STRING(&exp_name[0], &name[0]);
}