From e743931294d9d9c4e5a27d2644fd1cd354ce56cb Mon Sep 17 00:00:00 2001 From: Liang Qi Date: Tue, 23 Jul 2024 13:42:39 +0200 Subject: [PATCH] tests: skip tst_QApplication::abortQuitOnShow() on Wayland - 2 This amends 91079e64d89be5dbec6c9f33f84d3e483aec31e0 . It needs to have a QGuiApplication object before the check. Task-number: QTBUG-123172 Pick-to: 6.8 Change-Id: I51929431e69e4584c46e2dc08ca9c33b48b900c6 Reviewed-by: Inho Lee --- tests/auto/widgets/kernel/qapplication/tst_qapplication.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/auto/widgets/kernel/qapplication/tst_qapplication.cpp b/tests/auto/widgets/kernel/qapplication/tst_qapplication.cpp index 2eb2d845040..31edaee981e 100644 --- a/tests/auto/widgets/kernel/qapplication/tst_qapplication.cpp +++ b/tests/auto/widgets/kernel/qapplication/tst_qapplication.cpp @@ -2723,11 +2723,12 @@ private: void tst_QApplication::abortQuitOnShow() { + int argc = 0; + QApplication app(argc, nullptr); + if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive)) QSKIP("Wayland: This crash, see QTBUG-123172."); - int argc = 0; - QApplication app(argc, nullptr); ShowCloseShowWidget window1(false); window1.setWindowTitle(QLatin1String(QTest::currentTestFunction())); window1.show();