tst_qquickmenu: fail on warnings

Task-number: QTBUG-98718
Pick-to: 6.8 6.9 6.10
Change-Id: Idfedb0e9cb97833c7e144de7593cabf73522f88e
Reviewed-by: Santhosh Kumar <santhosh.kumar.selvaraj@qt.io>
This commit is contained in:
Mitch Curtis 2025-08-01 16:39:37 +08:00
parent b300f909d7
commit 60e5d85921
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@ QVERIFY2(actualMenuItem == expectedMenuItem, \
.arg(QDebug::toString(actualMenuItem), QDebug::toString(expectedMenuItem))));
tst_QQuickMenu::tst_QQuickMenu()
: QQmlDataTest(QT_QMLTEST_DATADIR)
: QQmlDataTest(QT_QMLTEST_DATADIR, FailOnWarningsPolicy::FailOnWarnings)
{
std::unique_ptr<QPlatformMenu> platformMenu(QGuiApplicationPrivate::platformTheme()->createPlatformMenu());
nativeMenuSupported = platformMenu != nullptr;