summaryrefslogtreecommitdiffstats
path: root/tools/h5stat
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2012-06-12 13:50:47 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2012-06-12 13:50:47 (GMT)
commit62ce2569cf6ab445d9d10e97679ec9f0df4d464d (patch)
tree88ced193faae333de5850e5785c77a9e40664252 /tools/h5stat
parentd8572191812a3debcb172fe72f3ecc5b87e59eb3 (diff)
downloadhdf5-62ce2569cf6ab445d9d10e97679ec9f0df4d464d.zip
hdf5-62ce2569cf6ab445d9d10e97679ec9f0df4d464d.tar.gz
hdf5-62ce2569cf6ab445d9d10e97679ec9f0df4d464d.tar.bz2
[svn-r22453] Add missing property for resultcode of 1 to MEMCHECKER tests
Diffstat (limited to 'tools/h5stat')
-rw-r--r--tools/h5stat/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/h5stat/CMakeLists.txt b/tools/h5stat/CMakeLists.txt
index 091da9a..fa9f815 100644
--- a/tools/h5stat/CMakeLists.txt
+++ b/tools/h5stat/CMakeLists.txt
@@ -93,6 +93,9 @@ IF (BUILD_TESTING)
# If using memchecker add tests without using scripts
IF (HDF5_ENABLE_USING_MEMCHECKER)
ADD_TEST (NAME H5STAT-${resultfile} COMMAND $<TARGET_FILE:h5stat> ${ARGN})
+ IF (NOT ${resultcode} STREQUAL "0")
+ SET_TESTS_PROPERTIES (H5STAT-${resultfile} PROPERTIES WILL_FAIL "true")
+ ENDIF (NOT ${resultcode} STREQUAL "0")
IF (NOT "${last_test}" STREQUAL "")
SET_TESTS_PROPERTIES (H5STAT-${resultfile} PROPERTIES DEPENDS ${last_test})
ENDIF (NOT "${last_test}" STREQUAL "")