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,15 +23,18 @@ 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)
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}
)
endif()
set(extra_test_libraries ${extra_test_libraries} PARENT_SCOPE)
set(extra_test_env ${extra_test_env} PARENT_SCOPE)