Skip warning from the loader for the test case loadMenuAsynchronously
The test case added as part of patch
36216db956
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 <mitch.curtis@qt.io>
This commit is contained in:
parent
da777a75f6
commit
28553473cf
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue