diff --git a/autotests/integration/debug_console_test.cpp b/autotests/integration/debug_console_test.cpp index 1f938f06d7..6ec625f184 100644 --- a/autotests/integration/debug_console_test.cpp +++ b/autotests/integration/debug_console_test.cpp @@ -126,7 +126,8 @@ void DebugConsoleTest::testX11Client() QVERIFY(rowsInsertedSpy.isValid()); QProcess glxgears; - glxgears.start(QStringLiteral("glxgears")); + glxgears.setProgram(QStringLiteral("glxgears")); + glxgears.start(); QVERIFY(glxgears.waitForStarted()); QVERIFY(rowsInsertedSpy.wait()); diff --git a/autotests/integration/dont_crash_glxgears.cpp b/autotests/integration/dont_crash_glxgears.cpp index 6dea42a063..d9554d8978 100644 --- a/autotests/integration/dont_crash_glxgears.cpp +++ b/autotests/integration/dont_crash_glxgears.cpp @@ -50,7 +50,8 @@ void DontCrashGlxgearsTest::testGlxgears() QVERIFY(clientAddedSpy.isValid()); QProcess glxgears; - glxgears.start(QStringLiteral("glxgears")); + glxgears.setProgram(QStringLiteral("glxgears")); + glxgears.start(); QVERIFY(glxgears.waitForStarted()); QVERIFY(clientAddedSpy.wait()); diff --git a/autotests/integration/x11_client_test.cpp b/autotests/integration/x11_client_test.cpp index 5ed352b9db..ee79221008 100644 --- a/autotests/integration/x11_client_test.cpp +++ b/autotests/integration/x11_client_test.cpp @@ -830,7 +830,8 @@ void X11ClientTest::testCaptionWmName() QVERIFY(clientAddedSpy.isValid()); QProcess glxgears; - glxgears.start(QStringLiteral("glxgears")); + glxgears.setProgram(QStringLiteral("glxgears")); + glxgears.start(); QVERIFY(glxgears.waitForStarted()); QVERIFY(clientAddedSpy.wait());