Port some tests away from a deprecated QProcess::start() overload

This commit is contained in:
Vlad Zahorodnii 2020-09-10 10:15:31 +03:00
parent 5a0a86c358
commit a1fe70baaa
3 changed files with 6 additions and 3 deletions

View file

@ -126,7 +126,8 @@ void DebugConsoleTest::testX11Client()
QVERIFY(rowsInsertedSpy.isValid()); QVERIFY(rowsInsertedSpy.isValid());
QProcess glxgears; QProcess glxgears;
glxgears.start(QStringLiteral("glxgears")); glxgears.setProgram(QStringLiteral("glxgears"));
glxgears.start();
QVERIFY(glxgears.waitForStarted()); QVERIFY(glxgears.waitForStarted());
QVERIFY(rowsInsertedSpy.wait()); QVERIFY(rowsInsertedSpy.wait());

View file

@ -50,7 +50,8 @@ void DontCrashGlxgearsTest::testGlxgears()
QVERIFY(clientAddedSpy.isValid()); QVERIFY(clientAddedSpy.isValid());
QProcess glxgears; QProcess glxgears;
glxgears.start(QStringLiteral("glxgears")); glxgears.setProgram(QStringLiteral("glxgears"));
glxgears.start();
QVERIFY(glxgears.waitForStarted()); QVERIFY(glxgears.waitForStarted());
QVERIFY(clientAddedSpy.wait()); QVERIFY(clientAddedSpy.wait());

View file

@ -830,7 +830,8 @@ void X11ClientTest::testCaptionWmName()
QVERIFY(clientAddedSpy.isValid()); QVERIFY(clientAddedSpy.isValid());
QProcess glxgears; QProcess glxgears;
glxgears.start(QStringLiteral("glxgears")); glxgears.setProgram(QStringLiteral("glxgears"));
glxgears.start();
QVERIFY(glxgears.waitForStarted()); QVERIFY(glxgears.waitForStarted());
QVERIFY(clientAddedSpy.wait()); QVERIFY(clientAddedSpy.wait());