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

master
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());
QProcess glxgears;
glxgears.start(QStringLiteral("glxgears"));
glxgears.setProgram(QStringLiteral("glxgears"));
glxgears.start();
QVERIFY(glxgears.waitForStarted());
QVERIFY(rowsInsertedSpy.wait());

View File

@ -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());

View File

@ -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());