From a1fe70baaa6ab84aae47b69d0408fb20f3bb61f5 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Thu, 10 Sep 2020 10:15:31 +0300 Subject: [PATCH] Port some tests away from a deprecated QProcess::start() overload --- autotests/integration/debug_console_test.cpp | 3 ++- autotests/integration/dont_crash_glxgears.cpp | 3 ++- autotests/integration/x11_client_test.cpp | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) 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());