aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAssam Boudjelthia <[email protected]>2025-10-15 12:44:13 +0300
committerAssam Boudjelthia <[email protected]>2025-10-18 22:34:58 +0300
commite3fa4de32018f5b6c897b9df51b35d4a38c0756d (patch)
tree5ecf4f5deaa7397c8b224d3a283d8a1c09f5cfc8
parentb56817fbd2a42bffb545ddbc2f1777a307f66951 (diff)
Android: skip test cases failing to acquire deadlock protectorHEADdev
It crashes when failing to acquire UI thread deadlock protector that's acquired by input context. The reason this happens is that some QML tests have a TextEdit or TextInput based elements that ends up doing some operation that blocks the UI thread even after the test case is finished and then when a next test case tries to create a window surface it finds the UI thread blocked. Skip these for now, otherwise a solution needs to be found under QTBUG-139400. This includes: * tst_qquickwidget::focusOnClickInProxyWidget * tst_QQuickContextMenu::textControlsMenuKey() * tst_QQuickContextMenu::mouseAreaUnderTextArea() Fixes: QTBUG-141161 Task-number: QTBUG-139400 Pick-to: 6.10 6.8 6.5 Change-Id: I61eed34d79aaa88c46937610dec962dcecf5c716 Reviewed-by: Rami Potinkara <[email protected]> Reviewed-by: Soheil Armin <[email protected]>
-rw-r--r--tests/auto/quickcontrols/qquickcontextmenu/tst_qquickcontextmenu.cpp6
-rw-r--r--tests/auto/quickwidgets/qquickwidget/tst_qquickwidget.cpp3
2 files changed, 9 insertions, 0 deletions
diff --git a/tests/auto/quickcontrols/qquickcontextmenu/tst_qquickcontextmenu.cpp b/tests/auto/quickcontrols/qquickcontextmenu/tst_qquickcontextmenu.cpp
index 333fd55095..16b72e8172 100644
--- a/tests/auto/quickcontrols/qquickcontextmenu/tst_qquickcontextmenu.cpp
+++ b/tests/auto/quickcontrols/qquickcontextmenu/tst_qquickcontextmenu.cpp
@@ -364,6 +364,9 @@ void tst_QQuickContextMenu::menuItemShouldntTriggerOnRelease() // QTBUG-133302
void tst_QQuickContextMenu::textControlsMenuKey()
{
+#ifdef Q_OS_ANDROID
+ QSKIP("Crashes on android. See QTBUG-139400");
+#endif
QQuickApplicationHelper helper(this, "textControlsAndParentMenus.qml");
QVERIFY2(helper.ready, helper.failureMessage());
QQuickWindow *window = helper.window;
@@ -411,6 +414,9 @@ void tst_QQuickContextMenu::textControlsMenuKey()
void tst_QQuickContextMenu::mouseAreaUnderTextArea()
{
+#ifdef Q_OS_ANDROID
+ QSKIP("Crashes on android. See QTBUG-139400");
+#endif
if (!arePopupWindowsSupported())
QSKIP("The platform doesn't support popup windows. Skipping test.");
diff --git a/tests/auto/quickwidgets/qquickwidget/tst_qquickwidget.cpp b/tests/auto/quickwidgets/qquickwidget/tst_qquickwidget.cpp
index a4c03ddaa1..1c4ae02664 100644
--- a/tests/auto/quickwidgets/qquickwidget/tst_qquickwidget.cpp
+++ b/tests/auto/quickwidgets/qquickwidget/tst_qquickwidget.cpp
@@ -1129,6 +1129,9 @@ void tst_qquickwidget::focusOnClick()
#if QT_CONFIG(graphicsview)
void tst_qquickwidget::focusOnClickInProxyWidget()
{
+#ifdef Q_OS_ANDROID
+ QSKIP("Crashes on Android, see QTBUG-139400");
+#endif
QGraphicsScene scene(0,0,400,400);
QGraphicsView view1(&scene);