From 28553473cfc55acd2f989769c2ea13c38997603a Mon Sep 17 00:00:00 2001 From: Santhosh Kumar Date: Tue, 26 Aug 2025 12:37:17 +0200 Subject: [PATCH] Skip warning from the loader for the test case loadMenuAsynchronously The test case added as part of patch 36216db956096d6cabdb28b08368dd76db92c652 shows up warning "There are still \"n\" items in the process of being created at engine in destruction.\". This patch allow this test case to pass if fail on warning enabled for the quick menu auto test. Task-number: QTBUG-137160 Task-number: QTBUG-139552 Change-Id: I7f31ffd096cc10b514542092a85f346e413b40dd Reviewed-by: Mitch Curtis --- tests/auto/quickcontrols/qquickmenu/tst_qquickmenu.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/auto/quickcontrols/qquickmenu/tst_qquickmenu.cpp b/tests/auto/quickcontrols/qquickmenu/tst_qquickmenu.cpp index aefa8c1e0d..c9af106db5 100644 --- a/tests/auto/quickcontrols/qquickmenu/tst_qquickmenu.cpp +++ b/tests/auto/quickcontrols/qquickmenu/tst_qquickmenu.cpp @@ -3573,6 +3573,11 @@ void tst_QQuickMenu::loadMenuAsynchronously() window.requestActivate(); QVERIFY(QTest::qWaitForWindowActive(&window)); + // The ignored warning message described below triggered from the loader and + // this need to be further analyzed. + // The bug report QTBUG-139552 raised to track the investigation. + QTest::ignoreMessage(QtWarningMsg, QRegularExpression("There are still \\\\\"(\\d+)\\\\\" items in the process of being created at engine destruction\\.")); + auto *rootItem = window.rootObject(); QVERIFY(rootItem);