Label skipped tests (#109)

This commit is contained in:
dhood 2017-02-13 11:59:23 -08:00 committed by GitHub
parent 0291f4e351
commit 41c2595b8b

View file

@ -23,16 +23,19 @@ target_compile_definitions(${PROJECT_NAME}_memory_tools
list(APPEND extra_test_libraries ${PROJECT_NAME}_memory_tools) list(APPEND extra_test_libraries ${PROJECT_NAME}_memory_tools)
# Create tests for the memory tools library. # Create tests for the memory tools library.
if(NOT WIN32) # (memory tools doesn't do anything on Windows) set(SKIP_TEST "")
include(../rcl_add_custom_gtest.cmake) if(WIN32) # (memory tools doesn't do anything on Windows)
set(SKIP_TEST "SKIP_TEST")
rcl_add_custom_gtest(test_memory_tools
SRCS test_memory_tools.cpp
ENV ${extra_test_env}
LIBRARIES ${extra_test_libraries}
)
endif() 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_libraries ${extra_test_libraries} PARENT_SCOPE)
set(extra_test_env ${extra_test_env} PARENT_SCOPE) set(extra_test_env ${extra_test_env} PARENT_SCOPE)
set(extra_lib_dirs ${extra_lib_dirs} PARENT_SCOPE) set(extra_lib_dirs ${extra_lib_dirs} PARENT_SCOPE)