From 63cfab628af937ea33805b698c0b4e08d5117200 Mon Sep 17 00:00:00 2001 From: Liang Qi Date: Thu, 20 Oct 2022 11:35:01 +0200 Subject: tests: skip tst_QGraphicsProxyWidget::bypassGraphicsProxyWidget() on Wayland QWindow::requestActivate() is not supported. This function crashed very often in ci/coin when system is busy. Task-number: QTBUG-107153 Pick-to: 6.4 6.2 Change-Id: I82523080db40bddce9c9dc000433117d8ef74847 Reviewed-by: Eskil Abrahamsen Blomfeldt --- .../graphicsview/qgraphicsproxywidget/tst_qgraphicsproxywidget.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/auto/widgets/graphicsview/qgraphicsproxywidget/tst_qgraphicsproxywidget.cpp b/tests/auto/widgets/graphicsview/qgraphicsproxywidget/tst_qgraphicsproxywidget.cpp index 9ec6912449..3cb0925e59 100644 --- a/tests/auto/widgets/graphicsview/qgraphicsproxywidget/tst_qgraphicsproxywidget.cpp +++ b/tests/auto/widgets/graphicsview/qgraphicsproxywidget/tst_qgraphicsproxywidget.cpp @@ -3071,6 +3071,9 @@ void tst_QGraphicsProxyWidget::bypassGraphicsProxyWidget_data() void tst_QGraphicsProxyWidget::bypassGraphicsProxyWidget() { + if (!QGuiApplicationPrivate::platformIntegration()->hasCapability(QPlatformIntegration::WindowActivation)) + QSKIP("QWindow::requestActivate() is not supported."); + QFETCH(bool, bypass); std::unique_ptr widgetGuard(new QWidget); -- cgit v1.2.3