mirror of
git://sourceware.org/git/glibc.git
synced 2025-03-06 20:58:33 +01:00
Revert "inet: Avoid label at end of compound statement in tst-if_nameindex"
This reverts commit 26aca73db5
.
Reason for revert: Unintended semantic change.
This commit is contained in:
parent
26aca73db5
commit
498ba34ee2
1 changed files with 3 additions and 1 deletions
|
@ -96,13 +96,15 @@ do_test (void)
|
||||||
/* Make sure our "invalid" name is really invalid. */
|
/* Make sure our "invalid" name is really invalid. */
|
||||||
for (ifp = if_ni; !(ifp->if_index == 0 && ifp->if_name == NULL); ifp++)
|
for (ifp = if_ni; !(ifp->if_index == 0 && ifp->if_name == NULL); ifp++)
|
||||||
if (strcmp (test_names[i], ifp->if_name) == 0)
|
if (strcmp (test_names[i], ifp->if_name) == 0)
|
||||||
continue;
|
goto not_this_one;
|
||||||
|
|
||||||
printf ("Testing if_nametoindex (%s) == 0\n", test_names[i]);
|
printf ("Testing if_nametoindex (%s) == 0\n", test_names[i]);
|
||||||
|
|
||||||
unsigned int idx = if_nametoindex (test_names[i]);
|
unsigned int idx = if_nametoindex (test_names[i]);
|
||||||
TEST_VERIFY (idx == 0);
|
TEST_VERIFY (idx == 0);
|
||||||
TEST_VERIFY (errno == ENODEV);
|
TEST_VERIFY (errno == ENODEV);
|
||||||
|
|
||||||
|
not_this_one:
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue