From 6a594fed967d54a5c45ef6a0acdfe6424c4b0fd0 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Thu, 23 Dec 2010 19:14:08 -0600 Subject: [PATCH] cmake: set pre and post memcheck commands. We need to clear out and re-create the tmp directory when running valgrind just like for the normal test run. --- cmake/CTestCustom.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmake/CTestCustom.cmake b/cmake/CTestCustom.cmake index 65af325..fcb09e4 100644 --- a/cmake/CTestCustom.cmake +++ b/cmake/CTestCustom.cmake @@ -1,2 +1,4 @@ set(CTEST_CUSTOM_PRE_TEST "sh -c \"rm -rf ../test/tmp && mkdir ../test/tmp\"") set(CTEST_CUSTOM_POST_TEST ${CTEST_CUSTOM_PRE_TEST}) +set(CTEST_CUSTOM_PRE_MEMCHECK ${CTEST_CUSTOM_PRE_TEST}) +set(CTEST_CUSTOM_POST_MEMCHECK ${CTEST_CUSTOM_PRE_TEST}) -- 2.7.4