GoogleTest: Report timeout duration on discovery failure

This commit is contained in:
Brad King
2025-10-30 13:00:56 -04:00
parent d3cfc57f06
commit daa7926c68
3 changed files with 3 additions and 0 deletions
+1
View File
@@ -381,6 +381,7 @@ function(gtest_discover_tests_impl)
"Error running test executable.\n"
" Path: '${path}'\n"
" Working directory: '${arg_TEST_WORKING_DIR}'\n"
" Timeout: '${arg_TEST_DISCOVERY_TIMEOUT}'\n"
" Result: ${result}\n"
" Output:\n"
" ${output}\n"
@@ -4,6 +4,7 @@
?( *|[0-9]+>)
( *|[0-9]+>) Path: '[^']*discovery_timeout_test(\.exe)?'
( *|[0-9]+>) Working directory: '[^']*/Tests/RunCMake/GoogleTest/GoogleTest-discovery-timeout'
( *|[0-9]+>) Timeout: '[^']*'
( *|[0-9]+>) Result: Process terminated due to timeout
( *|[0-9]+>) Output:
( *|[0-9]+>) +
@@ -4,6 +4,7 @@ CMake Error at [^
+
[ \t]*Path: '[^']*discovery_timeout_test(\.exe)?'
[ \t]*Working directory: '[^']*/Tests/RunCMake/GoogleTest/GoogleTest-discovery-timeout'
[ \t]*Timeout: '[^']*'
[ \t]*Result: Process terminated due to timeout
[ \t]*Output:
[ \t]*timeout\.