diff --git a/src/plugins/autotest/boost/boosttestconfiguration.cpp b/src/plugins/autotest/boost/boosttestconfiguration.cpp index e581cff50ee..768161a5c0c 100644 --- a/src/plugins/autotest/boost/boosttestconfiguration.cpp +++ b/src/plugins/autotest/boost/boosttestconfiguration.cpp @@ -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(