[svn-r20251] Correct expected fail tests to check a result code of NOT 0

This commit is contained in:
Allen Byrne 2011-03-15 12:43:50 -05:00
parent 82b64c5e97
commit 34dd499cdb

View File

@ -273,9 +273,9 @@ IF (BUILD_TESTING)
# If using memchecker add tests without using scripts
IF (HDF5_ENABLE_USING_MEMCHECKER)
ADD_TEST (NAME H5DIFF-${resultfile} COMMAND $<TARGET_FILE:h5diff> ${ARGN})
IF (${resultcode} STREQUAL "1")
IF (NOT ${resultcode} STREQUAL "0")
SET_TESTS_PROPERTIES (H5DIFF-${resultfile} PROPERTIES WILL_FAIL "true")
ENDIF (${resultcode} STREQUAL "1")
ENDIF (NOT ${resultcode} STREQUAL "0")
ELSE (HDF5_ENABLE_USING_MEMCHECKER)
ADD_TEST (
NAME H5DIFF-${resultfile}