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 <qt@david-redondo.de>
This commit is contained in:
parent
58e68f1981
commit
9155b2ecb4
@ -158,6 +158,7 @@ void tst_WaylandReconnect::multipleScreens()
|
|||||||
window2.show();
|
window2.show();
|
||||||
QCOMPOSITOR_TRY_VERIFY(m_comp->xdgToplevel(0));
|
QCOMPOSITOR_TRY_VERIFY(m_comp->xdgToplevel(0));
|
||||||
QCOMPOSITOR_TRY_VERIFY(m_comp->xdgToplevel(1));
|
QCOMPOSITOR_TRY_VERIFY(m_comp->xdgToplevel(1));
|
||||||
|
QCOMPOSITOR_TRY_VERIFY(!m_comp->output(1)->resourceMap().isEmpty());
|
||||||
|
|
||||||
// ensure they are on different outputs
|
// ensure they are on different outputs
|
||||||
exec([this] {
|
exec([this] {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user