diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2016-10-07 15:19:06 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2016-10-07 15:19:06 (GMT) |
commit | f66809465f1e5ce3a23080b70e08d600d1fb4c8a (patch) | |
tree | 39fe7ad97da133eff00062023591f8f181dc874e /config/cmake_ext_mod | |
parent | 280bdf0251d3cacf87fd2e08fb45a9d8b773fbaa (diff) | |
download | hdf5-f66809465f1e5ce3a23080b70e08d600d1fb4c8a.zip hdf5-f66809465f1e5ce3a23080b70e08d600d1fb4c8a.tar.gz hdf5-f66809465f1e5ce3a23080b70e08d600d1fb4c8a.tar.bz2 |
Add missing exists check from master project
Diffstat (limited to 'config/cmake_ext_mod')
-rw-r--r-- | config/cmake_ext_mod/runTest.cmake | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/config/cmake_ext_mod/runTest.cmake b/config/cmake_ext_mod/runTest.cmake index 7baa3bc..1d8b12e 100644 --- a/config/cmake_ext_mod/runTest.cmake +++ b/config/cmake_ext_mod/runTest.cmake @@ -25,6 +25,14 @@ if (NOT TEST_SKIP_COMPARE AND NOT TEST_REFERENCE) message (FATAL_ERROR "Require TEST_REFERENCE to be defined") endif () +if (EXISTS ${TEST_FOLDER}/${TEST_OUTPUT}) + file (REMOVE ${TEST_FOLDER}/${TEST_OUTPUT}) +endif () + +if (EXISTS ${TEST_FOLDER}/${TEST_OUTPUT}.err) + file (REMOVE ${TEST_FOLDER}/${TEST_OUTPUT}.err) +endif () + # if there is not an error reference file add the error output to the stdout file if (NOT TEST_ERRREF) set (ERROR_APPEND 1) |