Try to stabilize tst_qwidget_qwindow::tst_resize_count on X11

This test fails sporadically on OpenSUSE, with the widget receiving
multiple resize events. Assuming that window management kicks in at
unpredictable moments and changes the geometry of the managed widget
possibly in several steps, we try to turn off all window management
on X11.

Change-Id: I7d2120c02eb870040b2ee94986a2ac5608d5a423
Fixes: QTBUG-66345
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
bb10
Volker Hilsheimer 2020-02-14 16:16:37 +01:00
parent 9354af237b
commit 189ae68d2a
1 changed files with 2 additions and 0 deletions

View File

@ -968,6 +968,7 @@ void tst_QWidget_window::tst_resize_count()
{
{
ResizeWidget resize;
resize.setWindowFlags(Qt::X11BypassWindowManagerHint);
resize.show();
QVERIFY(QTest::qWaitForWindowExposed(&resize));
#ifdef Q_OS_WINRT
@ -1000,6 +1001,7 @@ void tst_QWidget_window::tst_resize_count()
}
{
ResizeWidget parent;
parent.setWindowFlag(Qt::X11BypassWindowManagerHint);
ResizeWidget child(&parent);
child.resize(m_testWidgetSize);
child.winId();