summaryrefslogtreecommitdiffstats
path: root/config/cmake/jrunTest.cmake
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2020-02-26 19:54:34 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2020-02-26 19:54:34 (GMT)
commit13f5b3aee20d1d65f56dc08f088e0f218da5cf37 (patch)
tree640a17d88714ec872636592e31010c6d4ec49010 /config/cmake/jrunTest.cmake
parentf53220dc201ba9ace215d517d857998e1e205fc7 (diff)
downloadhdf5-13f5b3aee20d1d65f56dc08f088e0f218da5cf37.zip
hdf5-13f5b3aee20d1d65f56dc08f088e0f218da5cf37.tar.gz
hdf5-13f5b3aee20d1d65f56dc08f088e0f218da5cf37.tar.bz2
Update examples and fix old version references.
Diffstat (limited to 'config/cmake/jrunTest.cmake')
-rw-r--r--config/cmake/jrunTest.cmake12
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...