Commit ffb91b03 authored by Martin Flöser's avatar Martin Flöser
Browse files

[autotest] Try to make TestWaylandOutputDevice::testEnabled more stable

The test failed on build.kde.org. Let's try to make the part which failed
more robust.
parent 700d5194
......@@ -454,11 +454,17 @@ void TestWaylandOutputDevice::testEnabled()
m_serverOutputDevice->setEnabled(OutputDeviceInterface::Enablement::Disabled);
QVERIFY(enabledChanged.wait());
QCOMPARE(output.enabled(), OutputDevice::Enablement::Disabled);
if (changed.count() != enabledChanged.count()) {
QVERIFY(changed.wait());
}
QCOMPARE(changed.count(), enabledChanged.count());
m_serverOutputDevice->setEnabled(OutputDeviceInterface::Enablement::Enabled);
QVERIFY(enabledChanged.wait());
QCOMPARE(output.enabled(), OutputDevice::Enablement::Enabled);
if (changed.count() != enabledChanged.count()) {
QVERIFY(changed.wait());
}
QCOMPARE(changed.count(), enabledChanged.count());
}
......
Supports Markdown
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