From 3ef6af024be43bc18352796df61542a241192583 Mon Sep 17 00:00:00 2001 From: Fabian Kosmale Date: Wed, 15 Dec 2021 09:00:47 +0100 Subject: [PATCH] QtTestHelpers: print exit code upon failure This might give a few insights into why the process has failed, at least if distinct return values are used for different errors. Change-Id: I61fe0ede812c4dda3d0cf0f2c96a479d198d340d Reviewed-by: Kai Koehne --- cmake/QtTestHelpers.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/QtTestHelpers.cmake b/cmake/QtTestHelpers.cmake index 0b4ff0936e..5b73efdfeb 100644 --- a/cmake/QtTestHelpers.cmake +++ b/cmake/QtTestHelpers.cmake @@ -577,7 +577,7 @@ execute_process(COMMAND ${extra_runner} ${arg_COMMAND} ${post_run} if(NOT result EQUAL 0) string(JOIN \" \" full_command ${arg_COMMAND}) - message(FATAL_ERROR \"\${full_command} execution failed.\") + message(FATAL_ERROR \"\${full_command} execution failed with exit code ${result}.\") endif()" ) endfunction()