diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2016-02-23 20:50:02 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2016-02-23 20:50:02 (GMT) |
commit | f74042d4e8ac904e5ab847b36e0fbabf5835b12a (patch) | |
tree | 04b14ede39afd7f19a36dfe675e4f52c9b50880e /config/cmake/vfdTest.cmake | |
parent | f7689087de6c3d549cca79f30b0633ba8ff239c8 (diff) | |
download | hdf5-f74042d4e8ac904e5ab847b36e0fbabf5835b12a.zip hdf5-f74042d4e8ac904e5ab847b36e0fbabf5835b12a.tar.gz hdf5-f74042d4e8ac904e5ab847b36e0fbabf5835b12a.tar.bz2 |
[svn-r29190] Add checking for *.err file before trying to read
Diffstat (limited to 'config/cmake/vfdTest.cmake')
-rw-r--r-- | config/cmake/vfdTest.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config/cmake/vfdTest.cmake b/config/cmake/vfdTest.cmake index 4685d88..10f0a7b 100644 --- a/config/cmake/vfdTest.cmake +++ b/config/cmake/vfdTest.cmake @@ -35,10 +35,10 @@ EXECUTE_PROCESS ( message (STATUS "COMMAND Result: ${TEST_RESULT}") -if (ERROR_APPEND) +if (ERROR_APPEND AND EXISTS ${TEST_FOLDER}/${TEST_OUTPUT}_${TEST_VFD}.err) file (READ ${TEST_FOLDER}/${TEST_OUTPUT}_${TEST_VFD}.err TEST_STREAM) file (APPEND ${TEST_FOLDER}/${TEST_OUTPUT}_${TEST_VFD}.out "${TEST_STREAM}") -endif (ERROR_APPEND) +endif (ERROR_APPEND AND EXISTS ${TEST_FOLDER}/${TEST_OUTPUT}_${TEST_VFD}.err) # if the return value is !=${TEST_EXPECT} bail out if (NOT ${TEST_RESULT} STREQUAL ${TEST_EXPECT}) |