diff --git a/game/tests/net.cpp b/game/tests/net.cpp index 68f3509..c5fadcf 100644 --- a/game/tests/net.cpp +++ b/game/tests/net.cpp @@ -218,7 +218,8 @@ TEST(Tcp, BindDummy) { } catch (std::runtime_error&) {} } -TEST(Tcp, BindBadAddress) { +// FIXME find out why a.b.c.d works on linux +TEST_F(NoUnixFixture, TcpBindBadAddress) { Net net; TcpSocket tcp; try { diff --git a/game/tests/util.hpp b/game/tests/util.hpp index 107d8de..4905ab3 100644 --- a/game/tests/util.hpp +++ b/game/tests/util.hpp @@ -16,6 +16,15 @@ class NoUnixOrTracyFixture : public ::testing::Test { } }; +class NoUnixFixture : public ::testing::Test { +protected: + void SetUp() override { +#if _WIN32 == 0 + GTEST_SKIP() << "WIN32 only test"; +#endif + } +}; + class NoHeadlessFixture : public ::testing::Test { protected: void SetUp() override {