summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorjhendersonHDF <jhenderson@hdfgroup.org>2023-08-26 05:42:19 (GMT)
committerGitHub <noreply@github.com>2023-08-26 05:42:19 (GMT)
commitdf6f5d37d858a48f710d5a1d34eba875a657263e (patch)
treedeb0c1713ff9a1d59e55e305866aaaef3d408d9d /config
parentee0737f4e802348ffb7774994ef94c4a6a43e3a1 (diff)
downloadhdf5-df6f5d37d858a48f710d5a1d34eba875a657263e.zip
hdf5-df6f5d37d858a48f710d5a1d34eba875a657263e.tar.gz
hdf5-df6f5d37d858a48f710d5a1d34eba875a657263e.tar.bz2
Output stderr file in CMake testing on failure (#3431)
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 0d05424..1304d36 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 ()