You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ac...@apache.org on 2015/11/23 18:57:44 UTC
[16/50] [abbrv] qpid-proton git commit: PROTON-1036: c++: disable
select test on windows
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 <ac...@redhat.com>
Authored: Tue Nov 3 13:49:38 2015 -0500
Committer: Alan Conway <ac...@redhat.com>
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: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org