[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kwayland] autotests/client: [autotest] Try to make TestWaylandOutputDevice::testEnabled more stable
From:       Martin_Gräßlin <mgraesslin () kde ! org>
Date:       2016-05-18 6:00:41
Message-ID: E1b2uXC-0007ah-05 () scm ! kde ! org
[Download RAW message or body]

Git commit 390173022e101612b772071cdcfe76041781f4aa by Martin Gräßlin.
Committed on 18/05/2016 at 05:59.
Pushed by graesslin into branch 'master'.

[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.

M  +6    -0    autotests/client/test_wayland_outputdevice.cpp

http://commits.kde.org/kwayland/390173022e101612b772071cdcfe76041781f4aa

diff --git a/autotests/client/test_wayland_outputdevice.cpp \
b/autotests/client/test_wayland_outputdevice.cpp index ea7e853..79d29f3 100644
--- a/autotests/client/test_wayland_outputdevice.cpp
+++ b/autotests/client/test_wayland_outputdevice.cpp
@@ -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());
 }
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic