forked from qt-creator/qt-creator
AutoTest: Fix quoting for boost tests
Especially needed for templated boost tests to avoid handling angle brackets as redirection. Change-Id: If8c4ec87c542b6e5ba750d38e00fd6bcf0d3d952 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -102,8 +102,13 @@ QStringList BoostTestConfiguration::argumentsForTestRunner(QStringList *omitted)
|
|||||||
arguments << "--detect_memory_leaks=0";
|
arguments << "--detect_memory_leaks=0";
|
||||||
|
|
||||||
// TODO improve the test case gathering and arguments building to avoid too long command lines
|
// TODO improve the test case gathering and arguments building to avoid too long command lines
|
||||||
|
if (isDebugRunMode()) { // debugger has its own quoting
|
||||||
for (const QString &test : testCases())
|
for (const QString &test : testCases())
|
||||||
arguments << "-t" << test;
|
arguments << "-t" << test;
|
||||||
|
} else {
|
||||||
|
for (const QString &test : testCases())
|
||||||
|
arguments << "-t" << "\"" + test + "\"";
|
||||||
|
}
|
||||||
|
|
||||||
if (TestSettings::instance()->processArgs()) {
|
if (TestSettings::instance()->processArgs()) {
|
||||||
arguments << filterInterfering(runnable().command.arguments().split(
|
arguments << filterInterfering(runnable().command.arguments().split(
|
||||||
|
|||||||
Reference in New Issue
Block a user