From 97ec146bd109109ac11e3c573625b47bfa4fd4ff Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Fri, 26 May 2017 00:40:20 +0200 Subject: tests: use right QProcess API in kconfigcompiler_test Use the QProcess::start() variant with explicit (empty, in this case) arguments, so the program string is not parsed as shell command, thus preserving paths with spaces as such. --- autotests/kconfig_compiler/kconfigcompiler_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'autotests/kconfig_compiler/kconfigcompiler_test.cpp') diff --git a/autotests/kconfig_compiler/kconfigcompiler_test.cpp b/autotests/kconfig_compiler/kconfigcompiler_test.cpp index 74bb7288..61de0b61 100644 --- a/autotests/kconfig_compiler/kconfigcompiler_test.cpp +++ b/autotests/kconfig_compiler/kconfigcompiler_test.cpp @@ -151,7 +151,7 @@ void KConfigCompiler_Test::testRunning() QVERIFY2(!program.isEmpty(), qPrintable(testName + QLatin1String(" must exist!"))); QVERIFY2(QFile::exists(program), qPrintable(program + QLatin1String(" must exist!"))); QProcess process; - process.start(program, QIODevice::ReadOnly); + process.start(program, QStringList(), QIODevice::ReadOnly); if (process.waitForStarted()) { QVERIFY(process.waitForFinished()); } -- cgit v1.2.1