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.
This commit is contained in:
parent
43aca8a949
commit
2da0a9428d
1 changed files with 1 additions and 1 deletions
|
@ -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*>();
|
||||
|
|
Loading…
Reference in a new issue