1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
Index: scalapack/BLACS/TESTING/runtest.cmake
===================================================================
--- scalapack.orig/BLACS/TESTING/runtest.cmake 2025-01-11 17:57:31.332038202 +0100
+++ scalapack/BLACS/TESTING/runtest.cmake 2025-01-11 18:01:19.265940245 +0100
@@ -13,10 +14,11 @@
# So we are going to check that the output have the last line of the testing : DONE BLACS_GRIDEXIT
file(READ "out_${TEST_PROG}.txt" TESTSTRING)
- STRING(REPLACE "DONE BLACS_GRIDEXIT" "BLACS OK" tmp ${TESTSTRING})
+ STRING(REPLACE "DONE BLACS_GRIDEXIT" "BLACS OK" tmp "${TESTSTRING}")
if("${tmp}" STREQUAL "${TESTSTRING}")
message( STATUS "Error in error_${TEST_PROG}.txt")
+ execute_process(COMMAND cat error_${TEST_PROG}.txt)
message(FATAL_ERROR "Test failed - Test did not reach DONE BLACS_GRIDEXIT")
else()
message( STATUS "Test Passed")
|