Skip to content

Commit

Permalink
cmake: set pre and post memcheck commands.
Browse files Browse the repository at this point in the history
We need to clear out and re-create the tmp directory when running
valgrind just like for the normal test run.
  • Loading branch information
thughes authored and ry committed Feb 18, 2011
1 parent f8defa3 commit 6a594fe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmake/CTestCustom.cmake
Original file line number Diff line number Diff line change
@@ -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})

0 comments on commit 6a594fe

Please sign in to comment.