enable IXWebSocketMessageQTest.cpp on mac and windows

This commit is contained in:
Benjamin Sergeant 2019-05-22 11:03:13 -07:00
parent 49fd2a9e53
commit 0e23584751
2 changed files with 9 additions and 1 deletions

View File

@ -50,8 +50,14 @@ if (UNIX)
)
endif()
# Some unittest fail for dubious reason on Ubuntu Xenial with TSAN
if (MAC OR WIN32)
list(APPEND SOURCES
IXWebSocketMessageQTest.cpp
)
endif()
# Disable tests for now that are failing or not reliable
# IXWebSocketMessageQTest.cpp (trigger a segfault on Linux)
add_executable(ixwebsocket_unittest ${SOURCES})

View File

@ -186,6 +186,8 @@ TEST_CASE("Websocket_message_queue", "[websocket_message_q]")
MsgQTestClient testClient;
testClient.run("ws://127.0.0.1:" + std::to_string(port));
REQUIRE(testClient.isSucceeded());
server.stop();
}
}