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:
parent
50d1a22e5c
commit
6ea2657ad5
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user