瀏覽代碼

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 16 年之前
父節點
當前提交
a16c857c30
共有 1 個文件被更改,包括 1 次插入1 次删除
  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)