summaryrefslogtreecommitdiffstats
path: root/Tests/CTestTest2
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2010-05-11 13:30:41 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2010-05-11 13:30:41 (GMT)
commitaa30bd3f2aa9b46b39738da60f9593175929cd46 (patch)
treeda10f3169ccf098e9e7ab52ec5f5e56dbebc244e /Tests/CTestTest2
parentef6b505caa339d05efba9425a24277b58884adf1 (diff)
downloadCMake-aa30bd3f2aa9b46b39738da60f9593175929cd46.zip
CMake-aa30bd3f2aa9b46b39738da60f9593175929cd46.tar.gz
CMake-aa30bd3f2aa9b46b39738da60f9593175929cd46.tar.bz2
Disable purify on unix, as it works differently and ctest can't use it.
Diffstat (limited to 'Tests/CTestTest2')
-rw-r--r--Tests/CTestTest2/test.cmake.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/Tests/CTestTest2/test.cmake.in b/Tests/CTestTest2/test.cmake.in
index cccd8c1..f6ec198 100644
--- a/Tests/CTestTest2/test.cmake.in
+++ b/Tests/CTestTest2/test.cmake.in
@@ -15,6 +15,14 @@ SET(CTEST_MEMORYCHECK_SUPPRESSIONS_FILE "@MEMORYCHECK_SUPPRESSIONS_FILE@")
SET(CTEST_MEMORYCHECK_COMMAND_OPTIONS "@MEMORYCHECK_COMMAND_OPTIONS@")
SET(CTEST_COVERAGE_COMMAND "@COVERAGE_COMMAND@")
SET(CTEST_NOTES_FILES "${CTEST_SCRIPT_DIRECTORY}/${CTEST_SCRIPT_NAME}")
+# for unix purify has to be used as a linker, and
+# will not work with ctest. So disable it so
+# that it is not attempted.
+IF(UNIX)
+ IF("${CTEST_MEMORYCHECK_COMMAND}" MATCHES purify)
+ SET(CTEST_MEMORYCHECK_COMMAND)
+ ENDIF()
+ENDIF()
#CTEST_EMPTY_BINARY_DIRECTORY(${CTEST_BINARY_DIRECTORY})