PROTON-1036: c++: disable select test on windows Test is not portable, disabling till fixed.
Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/a8f8a0ea Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/a8f8a0ea Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/a8f8a0ea Branch: refs/heads/go1 Commit: a8f8a0ea697b46d67aebc6ad44cc6c1fdbd11694 Parents: 820f840 Author: Alan Conway <[email protected]> Authored: Tue Nov 3 13:49:38 2015 -0500 Committer: Alan Conway <[email protected]> Committed: Tue Nov 3 13:49:38 2015 -0500 ---------------------------------------------------------------------- examples/cpp/CMakeLists.txt | 44 ++++++++++++++++++++++++---------------- 1 file changed, 26 insertions(+), 18 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/a8f8a0ea/examples/cpp/CMakeLists.txt ---------------------------------------------------------------------- diff --git a/examples/cpp/CMakeLists.txt b/examples/cpp/CMakeLists.txt index d5925b8..3e5dafe 100644 --- a/examples/cpp/CMakeLists.txt +++ b/examples/cpp/CMakeLists.txt @@ -21,22 +21,28 @@ find_package(ProtonCpp REQUIRED) include_directories(${ProtonCpp_INCLUDE_DIRS}) -foreach(example - broker - helloworld - helloworld_blocking - helloworld_direct - simple_recv - simple_send - direct_recv - direct_send - sync_client - client - select_broker - server - server_direct - recurring_timer - encode_decode) +set(examples + broker + helloworld + helloworld_blocking + helloworld_direct + simple_recv + simple_send + direct_recv + direct_send + sync_client + client + server + server_direct + recurring_timer + encode_decode) + +if (NOT WIN32) + list(APPEND examples + select_broker) +endif() + +foreach(example ${examples}) add_executable(${example} ${example}.cpp) target_link_libraries(${example} ${ProtonCpp_LIBRARIES}) set_source_files_properties(${example}.cpp PROPERTIES COMPILE_FLAGS "${CXX_WARNING_FLAGS}") @@ -58,5 +64,7 @@ add_test(NAME cpp_example_test set(broker_tests example_test.ExampleTest.test_request_response example_test.ExampleTest.test_simple_send_recv) -add_test(NAME cpp_example_select_test - COMMAND ${PYTHON_EXECUTABLE} ${env_py} -- "PATH=${test_path}" "PYTHONPATH=${CMAKE_CURRENT_SOURCE_DIR}" "TEST_BROKER=select_broker" ${VALGRIND_ENV} ${PYTHON_EXECUTABLE} -m unittest -v ${broker_tests}) +if (NOT WIN32) + add_test(NAME cpp_example_select_test + COMMAND ${PYTHON_EXECUTABLE} ${env_py} -- "PATH=${test_path}" "PYTHONPATH=${CMAKE_CURRENT_SOURCE_DIR}" "TEST_BROKER=select_broker" ${VALGRIND_ENV} ${PYTHON_EXECUTABLE} -m unittest -v ${broker_tests}) +endif() --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
