mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-20 04:44:05 +00:00
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:
@@ -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;
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user