Explorar o código

ENH: Better failure output from CTest.Update*

This teaches CTestUpdateCommon to report the process exit condition from
failed child processes executed during tests.
Brad King %!s(int64=16) %!d(string=hai) anos
pai
achega
a16c857c30
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Tests/CTestUpdateCommon.cmake

+ 1 - 1
Tests/CTestUpdateCommon.cmake

@@ -10,7 +10,7 @@ function(run_child)
     )
   if(FAILED)
     string(REGEX REPLACE "\n" "\n  " OUTPUT "${OUTPUT}")
-    message(FATAL_ERROR "Child failed.  Output is\n  ${OUTPUT}\n")
+    message(FATAL_ERROR "Child failed (${FAILED}), output is\n  ${OUTPUT}\n")
   endif(FAILED)
 endfunction(run_child)