summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2011-03-24 19:51:15 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2011-03-24 19:51:15 (GMT)
commitd4a547aba8e92e7f519edcb5632c6d94931dcaa9 (patch)
tree22ebbd4ab58d2cf7ceaedfd0c6bf0df523b3e7e2 /tools
parent8f12c469e27ad6851e18a289454e816fe6d7182d (diff)
downloadhdf5-d4a547aba8e92e7f519edcb5632c6d94931dcaa9.zip
hdf5-d4a547aba8e92e7f519edcb5632c6d94931dcaa9.tar.gz
hdf5-d4a547aba8e92e7f519edcb5632c6d94931dcaa9.tar.bz2
[svn-r20320] Correct clear objects for H5MKGRP tests
Tested:local linux
Diffstat (limited to 'tools')
-rw-r--r--tools/misc/CMakeLists.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/misc/CMakeLists.txt b/tools/misc/CMakeLists.txt
index 935239d..6b7fbb7 100644
--- a/tools/misc/CMakeLists.txt
+++ b/tools/misc/CMakeLists.txt
@@ -163,6 +163,14 @@ IF (BUILD_TESTING)
ENDMACRO (ADD_H5_TEST resultfile resultcode resultoption)
MACRO (ADD_H5_CMP resultfile resultcode)
+ ADD_TEST (
+ NAME H5MKGRP-clear-${resultfile}
+ COMMAND ${CMAKE_COMMAND}
+ -E remove
+ ${PROJECT_BINARY_DIR}/../testfiles/${resultfile}.h5
+ ${PROJECT_BINARY_DIR}/${resultfile}.out
+ ${PROJECT_BINARY_DIR}/${resultfile}.out.err
+ )
IF (HDF5_ENABLE_USING_MEMCHECKER)
ADD_TEST (NAME H5MKGRP-${resultfile} COMMAND $<TARGET_FILE:h5mkgrp> ${ARGN})
ELSE (HDF5_ENABLE_USING_MEMCHECKER)
@@ -178,6 +186,7 @@ IF (BUILD_TESTING)
-P "${HDF5_RESOURCES_DIR}/runTest.cmake"
)
ENDIF (HDF5_ENABLE_USING_MEMCHECKER)
+ SET_TESTS_PROPERTIES (H5MKGRP-${resultfile} PROPERTIES DEPENDS H5MKGRP-clear-${resultfile})
ENDMACRO (ADD_H5_CMP resultfile resultcode)
##############################################################################