Skip tst_QDialog::keepPositionOnClose on Linux as meant for Windows bug

The auto-test tst_QDialog::keepPositionOnClose() was meant to verify a
bug relating to Windows. It is flaky on Linux Opensuse and flakes when
it should be passsing.

QSkip this test, as it was written to cover the QTBUG-79147 on Windows
and is flaky on Opensuse 15.

Fixes: QTBUG-133825
Change-Id: If06bef395248071779bcee234dbb0476ab1ef711
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
This commit is contained in:
Frédéric Lefebvre 2025-02-18 15:47:58 +01:00 committed by Frederic Lefebvre
parent 50d1a22e5c
commit 6ea2657ad5

View File

@ -568,6 +568,10 @@ void tst_QDialog::dialogInGraphicsView()
// bar would offset the dialog position when shown next time.
void tst_QDialog::keepPositionOnClose()
{
#ifdef Q_OS_LINUX
if (QString(QGuiApplication::platformName().toLower()) == QStringLiteral("xcb"))
QSKIP("Test has been written for Windows and is flaky on Linux xcb.");
#endif
QDialog dialog;
dialog.setWindowTitle(QTest::currentTestFunction());
const QRect availableGeometry = QGuiApplication::primaryScreen()->availableGeometry();