ENH: Better failure output from CTest.Update*

This teaches CTestUpdateCommon to report the process exit condition from
failed child processes executed during tests.
This commit is contained in:
Brad King 2009-02-23 15:58:44 -05:00
parent c148714b82
commit a16c857c30

View File

@ -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)