Commit 2da0a942 authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

Fix for TestQtSurfaceExtension in path with spaces

Use the QProcess::start() variant with explicit (empty, in these cases)
arguments, so the program strings are not parsed as shell commands,
thus preserving paths with spaces as such.
parent 43aca8a9
......@@ -79,7 +79,7 @@ void TestQtSurfaceExtension::testCloseWindow()
QProcessEnvironment env = QProcessEnvironment::systemEnvironment();
env.insert(QStringLiteral("WAYLAND_DISPLAY"), s_socketName);
process.setProcessEnvironment(env);
process.start(binary);
process.start(binary, QStringList());
QVERIFY(surfaceExtensionSpy.wait());
QCOMPARE(surfaceExtensionSpy.count(), 1);
auto *extension = surfaceExtensionSpy.first().first().value<QtExtendedSurfaceInterface*>();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment