forked from qt-creator/qt-creator
AutoTest: Fix debugging of gtest based tests
Amends 6ae6390661
.
Fixes: QTCREATORBUG-28504
Change-Id: I7617b080f4ac872c1f806a8e89fa9084a0ac948f
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -60,8 +60,12 @@ QStringList GTestConfiguration::argumentsForTestRunner(QStringList *omitted) con
|
|||||||
}
|
}
|
||||||
|
|
||||||
const QStringList &testSets = testCases();
|
const QStringList &testSets = testCases();
|
||||||
if (!testSets.isEmpty())
|
if (!testSets.isEmpty()) {
|
||||||
|
if (isDebugRunMode()) // debugger does its own special quoting
|
||||||
|
arguments << "--gtest_filter=" + testSets.join(':');
|
||||||
|
else
|
||||||
arguments << "--gtest_filter=\"" + testSets.join(':') + '"';
|
arguments << "--gtest_filter=\"" + testSets.join(':') + '"';
|
||||||
|
}
|
||||||
|
|
||||||
auto gSettings = static_cast<GTestSettings *>(framework()->testSettings());
|
auto gSettings = static_cast<GTestSettings *>(framework()->testSettings());
|
||||||
if (!gSettings)
|
if (!gSettings)
|
||||||
|
Reference in New Issue
Block a user