From 46f66d2b76c9f22d70d7923de3c19d88870700a2 Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Wed, 16 Mar 2022 09:25:08 +0100 Subject: DebugTranslationService: Do not show a window in the test The test works fine with the window hidden. Trying to show it gives problems in the CI. We also want to avoid showing windows in non-GUI tests as far as possible. Fixes: QTBUG-101738 Change-Id: I206f74f940e6ba7ac6346c85459b896387ab85a5 Reviewed-by: Mitch Curtis Reviewed-by: Tim Jenssen (cherry picked from commit 08d0fb39b9872650e1395d8d6c0289bc119027c8) Reviewed-by: Qt Cherry-pick Bot --- .../qqmldebugtranslationservice/tst_qqmldebugtranslationservice.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/tests/auto/qml/debugger/qqmldebugtranslationservice/tst_qqmldebugtranslationservice.cpp b/tests/auto/qml/debugger/qqmldebugtranslationservice/tst_qqmldebugtranslationservice.cpp index ddb9657000..6d9be9deab 100644 --- a/tests/auto/qml/debugger/qqmldebugtranslationservice/tst_qqmldebugtranslationservice.cpp +++ b/tests/auto/qml/debugger/qqmldebugtranslationservice/tst_qqmldebugtranslationservice.cpp @@ -72,8 +72,6 @@ private slots: m_view.setSource((testFileUrl(QMLFILE))); QTRY_VERIFY2(m_view.status() == QQuickView::Ready, "Failed to load QML file"); - m_view.show(); - QVERIFY(QTest::qWaitForWindowActive(&m_view)); initQtHooks(); QVERIFY(hooks->qt_qmlDebugEnableService(qPrintable(QQmlDebugTranslationServiceImpl::s_key))); } -- cgit v1.2.3