diff options
author | Johan Klokkhammer Helsing <johan.helsing@qt.io> | 2018-05-28 11:39:12 +0200 |
---|---|---|
committer | Johan Helsing <johan.helsing@qt.io> | 2018-05-28 10:38:14 +0000 |
commit | 7659732f539bafb5fc41fc74c05c2a3f5c67ee7c (patch) | |
tree | cee296b2adbb7b124d9eb7c28f398ccd53614070 | |
parent | 916944807b8c54e887959eef63c542d2f16afab1 (diff) |
Fix flakiness in xdg-shell v6 client tests
Change-Id: I4b63edef6ea130ad7f7f294bf0903d84b8db4723
Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
-rw-r--r-- | tests/auto/client/xdgshellv6/tst_xdgshellv6.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/client/xdgshellv6/tst_xdgshellv6.cpp b/tests/auto/client/xdgshellv6/tst_xdgshellv6.cpp index 0f72f58a9..070a9a34c 100644 --- a/tests/auto/client/xdgshellv6/tst_xdgshellv6.cpp +++ b/tests/auto/client/xdgshellv6/tst_xdgshellv6.cpp @@ -169,6 +169,10 @@ void tst_WaylandClientXdgShellV6::showMinimized() window.showMinimized(); QCOMPARE(window.windowStates(), Qt::WindowMinimized); // should return minimized until QTRY_COMPARE(window.windowStates(), Qt::WindowNoState); // rejected by handleWindowStateChanged + + // Make sure the window on the compositor side is/was created here, and not after the test + // finishes, as that may mess up for later tests. + QTRY_VERIFY(m_compositor->xdgToplevelV6()); } void tst_WaylandClientXdgShellV6::setMinimized() |