Travis: Skip TCP bind test because of missing IPv6 support

master
Lukas Werling 2018-09-24 19:21:55 +02:00
parent 82feac4ccb
commit 05e3648495
2 changed files with 7 additions and 1 deletions

View File

@ -64,7 +64,8 @@ before_script:
script:
- ${BSYS/*#/} all netpuncher tests aul_test
- ./tests/tests
# TODO: Remove SKIP_IPV6_TEST once Travis generally adds ::1 as loopback address.
- SKIP_IPV6_TEST=1 ./tests/tests
- ./tests/aul_test
after_success:

View File

@ -88,6 +88,11 @@ TEST_F(C4NetIOTest, HostAddressCategories)
// Tests C4NetIOTCP::Bind
TEST_F(C4NetIOTest, TCPBind)
{
if (getenv("SKIP_IPV6_TEST")) {
printf("Skipping C4NetIOTest.TCPBind...\n");
return;
}
C4NetIOTCP NetIO;
ASSERT_TRUE(NetIO.Init());