summaryrefslogtreecommitdiff
path: root/test/cpp
diff options
context:
space:
mode:
authorMario Emmenlauer <memmenlauer@biodataanalysis.de>2020-04-24 08:51:37 +0200
committerGitHub <noreply@github.com>2020-04-24 07:51:37 +0100
commit802793638b3e06d8b9031ae4d0b765735165c598 (patch)
treed514ca6ed48f16fb99ab228950564848f3440cd0 /test/cpp
parented0bad34301741c6ea7473e891d1c6886e8db9e1 (diff)
downloadthrift-802793638b3e06d8b9031ae4d0b765735165c598.tar.gz
THRIFT-4282: Disabled StressTestNonBlocking on Windows
Diffstat (limited to 'test/cpp')
-rwxr-xr-xtest/cpp/CMakeLists.txt16
1 files changed, 10 insertions, 6 deletions
diff --git a/test/cpp/CMakeLists.txt b/test/cpp/CMakeLists.txt
index a136a4887..367b6decc 100755
--- a/test/cpp/CMakeLists.txt
+++ b/test/cpp/CMakeLists.txt
@@ -75,12 +75,16 @@ LINK_AGAINST_THRIFT_LIBRARY(StressTest thriftnb)
add_test(NAME StressTest COMMAND StressTest)
add_test(NAME StressTestConcurrent COMMAND StressTest --client-type=concurrent)
-add_executable(StressTestNonBlocking src/StressTestNonBlocking.cpp)
-target_link_libraries(StressTestNonBlocking crossstressgencpp ${Boost_LIBRARIES} ${LIBEVENT_LIB})
-LINK_AGAINST_THRIFT_LIBRARY(StressTestNonBlocking thrift)
-LINK_AGAINST_THRIFT_LIBRARY(StressTestNonBlocking thriftnb)
-LINK_AGAINST_THRIFT_LIBRARY(StressTestNonBlocking thriftz)
-add_test(NAME StressTestNonBlocking COMMAND StressTestNonBlocking)
+# As of https://jira.apache.org/jira/browse/THRIFT-4282, StressTestNonBlocking
+# is broken on Windows. Contributions welcome.
+if (NOT WIN32 AND NOT CYGWIN)
+ add_executable(StressTestNonBlocking src/StressTestNonBlocking.cpp)
+ target_link_libraries(StressTestNonBlocking crossstressgencpp ${Boost_LIBRARIES} ${LIBEVENT_LIB})
+ LINK_AGAINST_THRIFT_LIBRARY(StressTestNonBlocking thrift)
+ LINK_AGAINST_THRIFT_LIBRARY(StressTestNonBlocking thriftnb)
+ LINK_AGAINST_THRIFT_LIBRARY(StressTestNonBlocking thriftz)
+ add_test(NAME StressTestNonBlocking COMMAND StressTestNonBlocking)
+endif()
#
# Common thrift code generation rules