From 608e6d06255477a9b183e58b2a86a97ead8f921e Mon Sep 17 00:00:00 2001 From: Aliaksei Kandratsenka Date: Fri, 27 Sep 2024 17:34:36 -0400 Subject: [PATCH] unbreak cmake testing of heap-profiler --- CMakeLists.txt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ef89236..37e559e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -792,10 +792,10 @@ if(GPERFTOOLS_BUILD_HEAP_PROFILER) add_test(sampling_test sampling_test) if(GPERFTOOLS_BUILD_HEAP_PROFILER) - add_executable(heap_profiler_unittest src/tests/heap-profiler_unittest.cc) - target_link_libraries(heap_profiler_unittest tcmalloc) + add_executable(heap-profiler_unittest src/tests/heap-profiler_unittest.cc) + target_link_libraries(heap-profiler_unittest tcmalloc) add_test(NAME heap-profiler_unittest.sh - COMMAND "${CMAKE_CURRENT_SOURCE_DIR}/src/tests/heap-profiler_unittest.sh" heap-profiler_unittest) + COMMAND "${CMAKE_CURRENT_SOURCE_DIR}/src/tests/heap-profiler_unittest.sh" "${CMAKE_CURRENT_BINARY_DIR}/heap-profiler_unittest") endif() endif() @@ -820,9 +820,9 @@ if(GPERFTOOLS_BUILD_DEBUGALLOC) add_test(sampling_debug_test sampling_debug_test) if(GPERFTOOLS_BUILD_HEAP_PROFILER) - add_executable(heap_profiler_debug_unittest src/tests/heap-profiler_unittest.cc) - target_link_libraries(heap_profiler_debug_unittest tcmalloc_debug) - add_test(heap-profiler_debug_unittest.sh "${CMAKE_CURRENT_SOURCE_DIR}/src/tests/heap-profiler_unittest.sh" heap-profiler_debug_unittest) + add_executable(heap-profiler_debug_unittest src/tests/heap-profiler_unittest.cc) + target_link_libraries(heap-profiler_debug_unittest tcmalloc_debug) + add_test(heap-profiler_debug_unittest.sh "${CMAKE_CURRENT_SOURCE_DIR}/src/tests/heap-profiler_unittest.sh" "${CMAKE_CURRENT_BINARY_DIR}/heap-profiler_debug_unittest") endif() endif() endif()