Skip tst_qmltc::listView() under QEMU

It seems flaky and I fail to see any reasonable explanation for this

Task-number: QTBUG-99355
Change-Id: I21880b6d041cfc21cf847fc3e4f09563be2c5569
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@qt.io>
(cherry picked from commit 7f731838b0)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Andrei Golubev 2021-12-21 14:31:22 +01:00 committed by Qt Cherry-pick Bot
parent 777b56942b
commit e659b5b23a
2 changed files with 6 additions and 0 deletions

View File

@ -85,6 +85,7 @@ set(common_libraries
Qt::Core
Qt::QmlPrivate
Qt::QuickPrivate
Qt::TestPrivate
Qt::Gui # QColor, QMatrix4x4, ...
)

View File

@ -92,6 +92,8 @@
#include <QtTest/qsignalspy.h>
#include <QtTest/private/qemulationdetector_p.h>
#define SKIP_DUE_TO_QT_NAMESPACE 0
// on top of testing different cache configurations, we can also test namespace
@ -1583,6 +1585,9 @@ void tst_qmltc::listView()
QSKIP("QTBUG-99198: QT_NAMESPACE used, this test will fail in QVariant::setValue().");
#endif
if (QTestPrivate::isRunningArmOnX86())
QSKIP("Flaky on QEMU. Sometimes can't correctly run JavaScript code, QTBUG-99355");
QQmlEngine e;
PREPEND_NAMESPACE(listView) created(&e);
QQmlListReference children(&created, "data");