AutoTest: Set gtest_catch_exceptions=0 during debug runs

This allows the debugger to show the code location from which
an uncaught exception originates.

Change-Id: I6edbc381a4028e95d1844affac85a79ecdf55197
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Jonas Singe
2021-11-04 22:33:48 +01:00
parent 35e57ca748
commit ce924f74b6

View File

@@ -55,6 +55,7 @@ QStringList filterInterfering(const QStringList &provided, QStringList *omitted)
"--gtest_stream_result_to=", "--gtest_stream_result_to=",
"--gtest_break_on_failure", "--gtest_break_on_failure",
"--gtest_throw_on_failure", "--gtest_throw_on_failure",
"--gtest_catch_exceptions=",
"--gtest_print_time=" "--gtest_print_time="
}; };
@@ -100,6 +101,7 @@ QStringList GTestConfiguration::argumentsForTestRunner(QStringList *omitted) con
if (isDebugRunMode()) { if (isDebugRunMode()) {
if (gSettings->breakOnFailure.value()) if (gSettings->breakOnFailure.value())
arguments << "--gtest_break_on_failure"; arguments << "--gtest_break_on_failure";
arguments << "--gtest_catch_exceptions=0";
} }
return arguments; return arguments;
} }