Port some tests away from a deprecated QProcess::start() overload
This commit is contained in:
parent
5a0a86c358
commit
a1fe70baaa
3 changed files with 6 additions and 3 deletions
|
@ -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());
|
||||||
|
|
|
@ -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());
|
||||||
|
|
|
@ -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());
|
||||||
|
|
Loading…
Reference in a new issue