Commit a1fe70ba authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

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

parent 5a0a86c3
...@@ -126,7 +126,8 @@ void DebugConsoleTest::testX11Client() ...@@ -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() ...@@ -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() ...@@ -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());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment