Skip 3 tests on windows

This commit is contained in:
Michael 2019-07-18 23:12:14 +01:00
parent 53bccc4f23
commit e32470ae5a
No known key found for this signature in database
GPG Key ID: 2D51757B47E2434C
2 changed files with 14 additions and 2 deletions

View File

@ -169,6 +169,9 @@ struct LinkLayerTest : public test::LlarpTest< NoOpCrypto >
TEST_F(LinkLayerTest, TestUTPAliceRenegWithBob)
{
#ifdef WIN32
GTEST_SKIP();
#else
Alice.link = utp::NewServer(
Alice.encryptionKey,
[&]() -> const RouterContact& { return Alice.GetRC(); },
@ -211,7 +214,7 @@ TEST_F(LinkLayerTest, TestUTPAliceRenegWithBob)
DiscardMessage discard;
if(!discard.BEncode(&otherBuf))
return false;
otherBuf.sz = otherBuf.cur - otherBuf.base;
otherBuf.sz = otherBuf.cur - otherBuf.base;
otherBuf.cur = otherBuf.base;
return s->SendMessageBuffer(otherBuf);
};
@ -253,10 +256,14 @@ TEST_F(LinkLayerTest, TestUTPAliceRenegWithBob)
RunMainloop();
ASSERT_TRUE(Bob.gotLIM);
ASSERT_TRUE(success);
#endif
}
TEST_F(LinkLayerTest, TestUTPAliceConnectToBob)
{
#ifdef WIN32
GTEST_SKIP();
#else
Alice.link = utp::NewServer(
Alice.encryptionKey,
[&]() -> const RouterContact& { return Alice.GetRC(); },
@ -318,7 +325,7 @@ TEST_F(LinkLayerTest, TestUTPAliceConnectToBob)
DiscardMessage discard;
if(!discard.BEncode(&otherBuf))
return;
otherBuf.sz = otherBuf.cur - otherBuf.base;
otherBuf.sz = otherBuf.cur - otherBuf.base;
otherBuf.cur = otherBuf.base;
self->SendMessageBuffer(otherBuf);
}});
@ -339,4 +346,5 @@ TEST_F(LinkLayerTest, TestUTPAliceConnectToBob)
RunMainloop();
ASSERT_TRUE(Bob.gotLIM);
ASSERT_TRUE(success);
#endif
}

View File

@ -182,6 +182,9 @@ struct AbyssTest : public AbyssTestBase,
TEST_F(AbyssTest, TestClientAndServer)
{
#ifdef WIN32
GTEST_SKIP();
#else
Start();
QueueRPC(method, nlohmann::json::object(),
std::bind(&AbyssTest::NewConn, this, std::placeholders::_1));
@ -189,4 +192,5 @@ TEST_F(AbyssTest, TestClientAndServer)
AsyncFlush();
RunLoop();
ASSERT_TRUE(called);
#endif
}