From 97625e84b1e2e7d3d12efba71ed3348214de0cd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tinja=20Paavosepp=C3=A4?= Date: Tue, 5 Dec 2023 14:25:00 +0200 Subject: [PATCH] Android: Skip showAndMoveChild() test case temporarily MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit grabWindow() currently returns a null QPixmap on Android due to even raster windows being backed up by OpenGL/QRhi. The test case uses grabWindow() internally to grab contents to a pixmap and comparing whether the pixmap contents are as expected, leading now to failures due to null QPixmap being returned. Task-number: QTBUG-118849 Change-Id: I51cda2d43fe482252d5604f6b18281d810aa4d2f Reviewed-by: Tor Arne Vestbø --- tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp b/tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp index b3dec4b192..cfe295b031 100644 --- a/tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp +++ b/tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp @@ -6577,6 +6577,9 @@ void tst_QWidget::moveChild() void tst_QWidget::showAndMoveChild() { +#ifdef ANDROID + QSKIP("Fails on Android due to removed grabWindow(): QTBUG-118849"); +#endif if (m_platform == QStringLiteral("wayland")) QSKIP("Wayland: This fails. Figure out why."); QWidget parent(nullptr, Qt::Window | Qt::WindowStaysOnTopHint);