diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2020-02-26 19:54:34 (GMT) |
---|---|---|
committer | David Young <dyoung@hdfgroup.org> | 2020-05-20 14:31:55 (GMT) |
commit | 95c4222cd1320dc04bffee3347c8e55beb2112bd (patch) | |
tree | c70a8158e68124a90bc593c0ade5b91eb14a29bf /config/cmake/jrunTest.cmake | |
parent | ccdb8f360fa624f3467a2eeff448857ca4aec70b (diff) | |
download | hdf5-95c4222cd1320dc04bffee3347c8e55beb2112bd.zip hdf5-95c4222cd1320dc04bffee3347c8e55beb2112bd.tar.gz hdf5-95c4222cd1320dc04bffee3347c8e55beb2112bd.tar.bz2 |
Update examples and fix old version references.
Diffstat (limited to 'config/cmake/jrunTest.cmake')
-rw-r--r-- | config/cmake/jrunTest.cmake | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/config/cmake/jrunTest.cmake b/config/cmake/jrunTest.cmake index 583613e..41570eb 100644 --- a/config/cmake/jrunTest.cmake +++ b/config/cmake/jrunTest.cmake @@ -284,11 +284,13 @@ endif () # dump the output unless nodisplay option is set if (TEST_SKIP_COMPARE AND NOT TEST_NO_DISPLAY) - file (READ ${TEST_FOLDER}/${TEST_OUTPUT} TEST_STREAM) - execute_process ( - COMMAND ${CMAKE_COMMAND} -E echo ${TEST_STREAM} - RESULT_VARIABLE TEST_RESULT - ) + if (EXISTS "${TEST_FOLDER}/${TEST_OUTPUT}") + file (READ ${TEST_FOLDER}/${TEST_OUTPUT} TEST_STREAM) + execute_process ( + COMMAND ${CMAKE_COMMAND} -E echo ${TEST_STREAM} + RESULT_VARIABLE TEST_RESULT + ) + endif () endif () # everything went fine... |