summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorjhendersonHDF <jhenderson@hdfgroup.org>2023-09-01 19:42:17 (GMT)
committerGitHub <noreply@github.com>2023-09-01 19:42:17 (GMT)
commit58aa23c6e3a908555ed5ce1ed5a4d66aa35db24e (patch)
tree1cc0b31e7e6f19ec18e886506cea7c184e68739a /config
parent1dd81531d10b8b02bf66c7520c94906800ec14f7 (diff)
downloadhdf5-58aa23c6e3a908555ed5ce1ed5a4d66aa35db24e.zip
hdf5-58aa23c6e3a908555ed5ce1ed5a4d66aa35db24e.tar.gz
hdf5-58aa23c6e3a908555ed5ce1ed5a4d66aa35db24e.tar.bz2
Output stderr file in CMake testing on failure (#3431) (#3473)
Diffstat (limited to 'config')
-rw-r--r--config/cmake/runTest.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/config/cmake/runTest.cmake b/config/cmake/runTest.cmake
index 1e7f72d..d21765a 100644
--- a/config/cmake/runTest.cmake
+++ b/config/cmake/runTest.cmake
@@ -122,6 +122,10 @@ if (NOT TEST_RESULT EQUAL TEST_EXPECT)
file (READ ${TEST_FOLDER}/${TEST_OUTPUT} TEST_STREAM)
message (STATUS "Output :\n${TEST_STREAM}")
endif ()
+ if (EXISTS "${TEST_FOLDER}/${TEST_OUTPUT}.err")
+ file (READ ${TEST_FOLDER}/${TEST_OUTPUT}.err TEST_STREAM)
+ message (STATUS "Error Output :\n${TEST_STREAM}")
+ endif ()
endif ()
message (FATAL_ERROR "Failed: Test program ${TEST_PROGRAM} exited != ${TEST_EXPECT}.\n${TEST_ERROR}")
endif ()