From 41c2595b8bdbc20210974583e87f936d4527830f Mon Sep 17 00:00:00 2001 From: dhood Date: Mon, 13 Feb 2017 11:59:23 -0800 Subject: [PATCH] Label skipped tests (#109) --- rcl/test/memory_tools/CMakeLists.txt | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/rcl/test/memory_tools/CMakeLists.txt b/rcl/test/memory_tools/CMakeLists.txt index 351da6e..3a95151 100644 --- a/rcl/test/memory_tools/CMakeLists.txt +++ b/rcl/test/memory_tools/CMakeLists.txt @@ -23,16 +23,19 @@ target_compile_definitions(${PROJECT_NAME}_memory_tools list(APPEND extra_test_libraries ${PROJECT_NAME}_memory_tools) # Create tests for the memory tools library. -if(NOT WIN32) # (memory tools doesn't do anything on Windows) - include(../rcl_add_custom_gtest.cmake) - - rcl_add_custom_gtest(test_memory_tools - SRCS test_memory_tools.cpp - ENV ${extra_test_env} - LIBRARIES ${extra_test_libraries} - ) +set(SKIP_TEST "") +if(WIN32) # (memory tools doesn't do anything on Windows) + set(SKIP_TEST "SKIP_TEST") endif() +include(../rcl_add_custom_gtest.cmake) +rcl_add_custom_gtest(test_memory_tools + SRCS test_memory_tools.cpp + ENV ${extra_test_env} + LIBRARIES ${extra_test_libraries} + ${SKIP_TEST} +) + set(extra_test_libraries ${extra_test_libraries} PARENT_SCOPE) set(extra_test_env ${extra_test_env} PARENT_SCOPE) set(extra_lib_dirs ${extra_lib_dirs} PARENT_SCOPE)