summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorFabian Kosmale <fabian.kosmale@qt.io>2021-12-15 09:00:47 +0100
committerAlexandru Croitor <alexandru.croitor@qt.io>2021-12-17 15:32:44 +0100
commitbbe872839ee40e87816966df29ae85216e42c3ed (patch)
treea35f848a094b172a483c8745caae7c420f2be473 /cmake
parent3a051c4fca2ae37fc0bdeae69c43c7f20c43c662 (diff)
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 <kai.koehne@qt.io> (cherry picked from commit 3ef6af024be43bc18352796df61542a241192583) Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/QtTestHelpers.cmake2
1 files changed, 1 insertions, 1 deletions
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()