CI: do not skip net_udp test but not fail on mcast

Do not skip the whole net_udp test suite but rather only suppress the
multicast initialize fail in macOS runner.
This commit is contained in:
Martin Pulec
2023-03-08 08:39:47 +01:00
parent d001bd18f9
commit 393b6f9eaf
2 changed files with 4 additions and 5 deletions

View File

@@ -155,9 +155,6 @@ static bool run_tests(const char *test)
}
bool ret = true;
for (unsigned i = 0; i < sizeof tests / sizeof tests[0]; ++i) {
if (getenv("GITHUB_REPOSITORY") != NULL && strcmp(tests[i].name, "test_net_udp") == 0) {
continue; // skip this test in CI
}
ret = test_helper(tests[i].name, tests[i].test, tests[i].quiet) && ret;
}
return ret;

View File

@@ -367,7 +367,7 @@ int test_net_udp(void)
if (s1 == NULL) {
printf("FAIL\n");
printf(" Cannot initialize socket\n");
return -1;
goto abort_multicast_ipv6;
}
randomize(buf1, BUFSIZE);
randomize(buf2, BUFSIZE);
@@ -409,7 +409,9 @@ int test_net_udp(void)
hname = udp_host_addr(s1); /* we need this for the unicast test... */
printf("Ok\n");
abort_multicast_ipv6:
udp_exit(s1);
if (s1 != NULL) {
udp_exit(s1);
}
#else
printf
("Testing UDP/IP networking (IPv6 loopback) ................................ --\n");