From 8b8637d014f76f33b6e1c07a3fa5200dfe4fa200 Mon Sep 17 00:00:00 2001 From: Allen Byrne Date: Tue, 8 Mar 2011 14:14:43 -0500 Subject: [svn-r20199] Add expected fail condition to memcheck alternate tests. --- tools/h5diff/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/h5diff/CMakeLists.txt b/tools/h5diff/CMakeLists.txt index 664a308..0a367d9 100644 --- a/tools/h5diff/CMakeLists.txt +++ b/tools/h5diff/CMakeLists.txt @@ -273,6 +273,9 @@ IF (BUILD_TESTING) # If using memchecker add tests without using scripts IF (HDF5_ENABLE_USING_MEMCHECKER) ADD_TEST (NAME H5DIFF-${resultfile} COMMAND $ ${ARGN}) + IF (${resultcode} STREQUAL "1") + SET_TESTS_PROPERTIES (H5DIFF-${resultfile} PROPERTIES WILL_FAIL "true") + ENDIF (${resultcode} STREQUAL "1") ELSE (HDF5_ENABLE_USING_MEMCHECKER) ADD_TEST ( NAME H5DIFF-${resultfile} -- cgit v0.12