forked from qt-creator/qt-creator
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:
@@ -55,6 +55,7 @@ QStringList filterInterfering(const QStringList &provided, QStringList *omitted)
|
||||
"--gtest_stream_result_to=",
|
||||
"--gtest_break_on_failure",
|
||||
"--gtest_throw_on_failure",
|
||||
"--gtest_catch_exceptions=",
|
||||
"--gtest_print_time="
|
||||
};
|
||||
|
||||
@@ -100,6 +101,7 @@ QStringList GTestConfiguration::argumentsForTestRunner(QStringList *omitted) con
|
||||
if (isDebugRunMode()) {
|
||||
if (gSettings->breakOnFailure.value())
|
||||
arguments << "--gtest_break_on_failure";
|
||||
arguments << "--gtest_catch_exceptions=0";
|
||||
}
|
||||
return arguments;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user