summaryrefslogtreecommitdiffstats
path: root/tools
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)
commit20d45c853d83eb04fc72e01a3b5461240312095d (patch)
tree51b958611b5b12f994db92f8cdb3ebffa7791673 /tools
parent75f31948821d7b134f20948f1d3c18547c4c654f (diff)
downloadhdf5-20d45c853d83eb04fc72e01a3b5461240312095d.zip
hdf5-20d45c853d83eb04fc72e01a3b5461240312095d.tar.gz
hdf5-20d45c853d83eb04fc72e01a3b5461240312095d.tar.bz2
[svn-r22453] Add missing property for resultcode of 1 to MEMCHECKER tests
Diffstat (limited to 'tools')
-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 "")