Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suppress memory tools warning if tests will be skipped #4

Merged
merged 2 commits into from Sep 9, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 5 additions & 3 deletions performance_test_fixture-extras.cmake
Expand Up @@ -21,9 +21,11 @@ macro(_performance_test_fixture_find_memory_tools)
osrf_testing_tools_cpp::memory_tools LIBRARY_PRELOAD_ENVIRONMENT_IS_AVAILABLE)

if(NOT _PERFORMANCE_TEST_FIXTURE_MEMORY_TOOLS_AVAILABLE)
message(WARNING
"'osrf_testing_tools_cpp' memory tools are not available, C++ tests "
"using 'performance_test_fixture' can not be run and will be skipped.")
if(AMENT_RUN_PERFORMANCE_TESTS)
message(WARNING
"'osrf_testing_tools_cpp' memory tools are not available, C++ tests "
"using 'performance_test_fixture' can not be run and will be skipped.")
endif()
else()
cottsay marked this conversation as resolved.
Show resolved Hide resolved
get_target_property(_PERFORMANCE_TEST_FIXTURE_MEMORY_TOOLS_ENV
osrf_testing_tools_cpp::memory_tools LIBRARY_PRELOAD_ENVIRONMENT_VARIABLE)
Expand Down