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>
This commit is contained in:
Richard Moe Gustavsen 2023-06-23 11:18:50 +02:00
parent 7fee97cb2e
commit d74235db5d

View File

@ -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();