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:
parent
c148714b82
commit
a16c857c30
@ -10,7 +10,7 @@ function(run_child)
|
|||||||
)
|
)
|
||||||
if(FAILED)
|
if(FAILED)
|
||||||
string(REGEX REPLACE "\n" "\n " OUTPUT "${OUTPUT}")
|
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)
|
endif(FAILED)
|
||||||
endfunction(run_child)
|
endfunction(run_child)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user