6c1f57cc8 (dev), 6365c9e14 (6.6), 1465d428e (6.5), 44bf048c9 (dev), eaafda38d (6.6), 131c976b8 (6.5)
Now that https://codereview.qt-project.org/c/qt/qtbase/+/375915 is merged, we can start preventing new warnings from creeping into qtdeclarative.
My proposal is to do this in tests that aren't based on QQmlDataTest:
and this in the constructor of those that are:
This would make every QQmlDataTest-based test function in qtdeclarative fail if a qWarning is encountered. It would require a bit of work up front: a few tests would probably require a bunch of QTest::ignoreMessages, and
QTBUG-98439 would need to be fixed first.
In addition, we should add a bool failOnWarnings to TestCase, defaulting it to the value of QT_QUICK_TEST_FAIL_ON_WARNINGS if it is set, otherwise false. This will allow us to enable it for all QML tests in the least disruptive way.
This won't cover every test, but it's a good start.
|For Gerrit Dashboard: QTBUG-98718|
|383346,19||WIP: Fix and ignore warnings in tests in preparation for failOnWarnings||dev||qt/qtdeclarative||Status: NEW||-2||0|
|414644,1||WIP: make some tests fail on warnings||dev||qt/qtdeclarative||Status: NEW||-2||0|
|472463,1||tst_tumbler.qml: fail on warnings||dev||qt/qtdeclarative||Status: NEW||+2||0|