diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2011-03-11 14:15:54 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2011-03-11 14:15:54 (GMT) |
commit | 315392ce0ac256b5ef512975f1aee2e235e212f4 (patch) | |
tree | 3adb0dcff6e18db8bcad57b4be8efe8ea44563be /tools/h5diff | |
parent | 7db84201bf14a7120d6e3a155f403e281e27eda5 (diff) | |
download | hdf5-315392ce0ac256b5ef512975f1aee2e235e212f4.zip hdf5-315392ce0ac256b5ef512975f1aee2e235e212f4.tar.gz hdf5-315392ce0ac256b5ef512975f1aee2e235e212f4.tar.bz2 |
[svn-r20230] Change MEMCHECK condition for test result from if "1" to if NOT "0" to account for type "2" exit codes.
Diffstat (limited to 'tools/h5diff')
-rw-r--r-- | tools/h5diff/CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/h5diff/CMakeLists.txt b/tools/h5diff/CMakeLists.txt index 0a367d9..6e74a00 100644 --- a/tools/h5diff/CMakeLists.txt +++ b/tools/h5diff/CMakeLists.txt @@ -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} |