summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2011-08-17 18:42:22 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2011-08-17 18:42:22 (GMT)
commita968e2d409d975ac5b584680620d2589b0409f88 (patch)
tree242666daa67406d89f886fd423aa28a81caa6d49
parent7a6f281a8b8a34e8cf4f58c2d1b36a13329cb365 (diff)
downloadhdf5-a968e2d409d975ac5b584680620d2589b0409f88.zip
hdf5-a968e2d409d975ac5b584680620d2589b0409f88.tar.gz
hdf5-a968e2d409d975ac5b584680620d2589b0409f88.tar.bz2
[svn-r21243] Add resultcode check to MemTest test sections
-rw-r--r--tools/h5jam/CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/h5jam/CMakeLists.txt b/tools/h5jam/CMakeLists.txt
index 1c3e782..6ed7543 100644
--- a/tools/h5jam/CMakeLists.txt
+++ b/tools/h5jam/CMakeLists.txt
@@ -103,6 +103,9 @@ IF (BUILD_TESTING)
# If using memchecker add tests without using scripts
IF (HDF5_ENABLE_USING_MEMCHECKER)
ADD_TEST (NAME H5JAM-${expectfile} COMMAND $<TARGET_FILE:h5jam> ${ARGN})
+ IF (NOT "${resultcode}" STREQUAL "0")
+ SET_TESTS_PROPERTIES (H5JAM-${expectfile} PROPERTIES WILL_FAIL "true")
+ ENDIF ("${resultcode}" STREQUAL "0")
ELSE (HDF5_ENABLE_USING_MEMCHECKER)
ADD_TEST (
NAME H5JAM-${expectfile}
@@ -126,6 +129,9 @@ IF (BUILD_TESTING)
# If using memchecker add tests without using scripts
IF (HDF5_ENABLE_USING_MEMCHECKER)
ADD_TEST (NAME H5JAM-UNJAM-${expectfile} COMMAND $<TARGET_FILE:h5unjam> ${ARGN})
+ IF (NOT "${resultcode}" STREQUAL "0")
+ SET_TESTS_PROPERTIES (H5JAM-UNJAM-${expectfile} PROPERTIES WILL_FAIL "true")
+ ENDIF ("${resultcode}" STREQUAL "0")
ELSE (HDF5_ENABLE_USING_MEMCHECKER)
ADD_TEST (
NAME H5JAM-UNJAM-${expectfile}