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:
Christian Stenger
2023-06-20 09:10:26 +02:00
parent 17c8a6bfe2
commit 2d650a624d

View File

@@ -102,8 +102,13 @@ QStringList BoostTestConfiguration::argumentsForTestRunner(QStringList *omitted)
arguments << "--detect_memory_leaks=0";
// TODO improve the test case gathering and arguments building to avoid too long command lines
for (const QString &test : testCases())
arguments << "-t" << test;
if (isDebugRunMode()) { // debugger has its own quoting
for (const QString &test : testCases())
arguments << "-t" << test;
} else {
for (const QString &test : testCases())
arguments << "-t" << "\"" + test + "\"";
}
if (TestSettings::instance()->processArgs()) {
arguments << filterInterfering(runnable().command.arguments().split(