mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
Merge topic 'googletest-executor-error'
0f51987d42 GoogleTest: show test executor in error message
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !6813
This commit is contained in:
@@ -80,9 +80,14 @@ function(gtest_discover_tests_impl)
|
||||
)
|
||||
if(NOT ${result} EQUAL 0)
|
||||
string(REPLACE "\n" "\n " output "${output}")
|
||||
if(_TEST_EXECUTOR)
|
||||
set(path "${_TEST_EXECUTOR} ${_TEST_EXECUTABLE}")
|
||||
else()
|
||||
set(path "${_TEST_EXECUTABLE}")
|
||||
endif()
|
||||
message(FATAL_ERROR
|
||||
"Error running test executable.\n"
|
||||
" Path: '${_TEST_EXECUTABLE}'\n"
|
||||
" Path: '${path}'\n"
|
||||
" Result: ${result}\n"
|
||||
" Output:\n"
|
||||
" ${output}\n"
|
||||
|
||||
Reference in New Issue
Block a user