File: blacs_testing.patch

package info (click to toggle)
scalapack 2.2.2-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 37,628 kB
  • sloc: fortran: 339,113; ansic: 74,530; makefile: 1,490; sh: 33
file content (17 lines) | stat: -rw-r--r-- 887 bytes parent folder | download | duplicates (2)
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")