diff options
author | Audun Sutterud <[email protected]> | 2025-02-27 13:19:38 +0000 |
---|---|---|
committer | Audun Sutterud <[email protected]> | 2025-03-13 10:43:08 +0000 |
commit | 9155b2ecb45d297ffaa00d069e9d95bf95da537a (patch) | |
tree | 66761e005bc5d2ce83d70ae86b6dc2ed208605ad | |
parent | 58e68f1981d0ba0a80e373dd5ca78a9260824c36 (diff) |
tests: Wait for output in tst_reconnect
The test must wait for the output to have a client before placing a
surface on it. If it fails to do so, flakiness may occur.
Task-number: QTBUG-132699
Change-Id: I272742d3bee7ae1fe61b8df629aba2947785fc6c
Reviewed-by: David Redondo <[email protected]>
-rw-r--r-- | tests/auto/wayland/reconnect/tst_reconnect.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/wayland/reconnect/tst_reconnect.cpp b/tests/auto/wayland/reconnect/tst_reconnect.cpp index 22892494157..e32784ba0a3 100644 --- a/tests/auto/wayland/reconnect/tst_reconnect.cpp +++ b/tests/auto/wayland/reconnect/tst_reconnect.cpp @@ -158,6 +158,7 @@ void tst_WaylandReconnect::multipleScreens() window2.show(); QCOMPOSITOR_TRY_VERIFY(m_comp->xdgToplevel(0)); QCOMPOSITOR_TRY_VERIFY(m_comp->xdgToplevel(1)); + QCOMPOSITOR_TRY_VERIFY(!m_comp->output(1)->resourceMap().isEmpty()); // ensure they are on different outputs exec([this] { |