summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Moe Gustavsen <richard.gustavsen@qt.io>2023-06-23 11:18:50 +0200
committerRichard Moe Gustavsen <richard.gustavsen@qt.io>2023-06-27 13:58:55 +0200
commitd74235db5db736e196989cb8271980bcd37ce1d7 (patch)
treeb6979e20f9035bf11fa0e99a86a8ea2cde845783
parent7fee97cb2e900d68514c09223d20e0c257b81826 (diff)
tst_qcombobox: skip popupPositionAfterStyleChange on QEMU
The test turns out to be flaky on QEMU. Fixes: QTBUG-114760 Pick-to: 6.6 6.5 Change-Id: I264f79e9a056e82d4e6735e6ead0710ddabd8eba Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
-rw-r--r--tests/auto/widgets/widgets/qcombobox/tst_qcombobox.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/widgets/widgets/qcombobox/tst_qcombobox.cpp b/tests/auto/widgets/widgets/qcombobox/tst_qcombobox.cpp
index 2a88a1957b7..a1555eeb2d5 100644
--- a/tests/auto/widgets/widgets/qcombobox/tst_qcombobox.cpp
+++ b/tests/auto/widgets/widgets/qcombobox/tst_qcombobox.cpp
@@ -48,6 +48,7 @@
#include <private/qinputmethod_p.h>
#include <QtTest/private/qtesthelpers_p.h>
+#include <QtTest/private/qemulationdetector_p.h>
#include <QtWidgets/private/qapplication_p.h>
@@ -3399,6 +3400,8 @@ void tst_QComboBox::popupPositionAfterStyleChange()
const bool usePopup = qApp->style()->styleHint(QStyle::SH_ComboBox_Popup, &opt, &box);
if (!usePopup)
QSKIP("This test is only relevant for styles that centers the popup on top of the combo!");
+ if (QTestPrivate::isRunningArmOnX86())
+ QSKIP("Flaky on QEMU, QTBUG-114760");
box.addItems({"first", "middle", "last"});
box.show();