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 <eskil.abrahamsen-blomfeldt@qt.io>
bb10
Liang Qi 2022-10-20 11:35:01 +02:00
parent d8c078c2b6
commit 63cfab628a
1 changed files with 3 additions and 0 deletions

View File

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