From 7659732f539bafb5fc41fc74c05c2a3f5c67ee7c Mon Sep 17 00:00:00 2001 From: Johan Klokkhammer Helsing Date: Mon, 28 May 2018 11:39:12 +0200 Subject: Fix flakiness in xdg-shell v6 client tests Change-Id: I4b63edef6ea130ad7f7f294bf0903d84b8db4723 Reviewed-by: Paul Olav Tvete --- tests/auto/client/xdgshellv6/tst_xdgshellv6.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/auto') 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() -- cgit v1.2.3