fixed: also run unit tests through valgrind if requested
This commit is contained in:
1 parent
62b9da7bcf
commit
48c6cbc949
1 file changed
+3
@@ -79,6 +79,9 @@ macro(add_check_target)
|
||||
list(GET UNIT_TEST${test_number} 0 name)
|
||||
list(GET UNIT_TEST${test_number} 1 dir)
|
||||
list(GET UNIT_TEST${test_number} 2 -1 cmd)
|
||||
if(IFEM_TEST_MEMCHECK)
|
||||
set(cmd valgrind ${cmd})
|
||||
endif()
|
||||
add_test(NAME ${name} WORKING_DIRECTORY ${dir} COMMAND ${cmd})
|
||||
endforeach()
|
||||
endif()
|
||||
|
||||
Reference in new issue
Block a user