qt5base-lts/tests/auto/corelib/io/qsettings
Tor Arne Vestbø bef57b317f testlib: Deprecate QWARN() in favor of qWarning()
The QtTest best practices documentations recommends using output
mechanisms such as qDebug() and qWarning() for diagnostic messages,
and this is also what most of our own tests do.

The QWARN() macro and corresponding internal QTest::qWarn() function
was added when QtTest was first implemented, but was likely meant as
an internal implementation detail, like its cousin QTestLog::info(),
which does not have any corresponding macro.

This theory is backed by our own QtTest self-test (tst_silent)
describing the output from QWARN() as "an internal testlib warning".

The only difference between QWARN() and qWarning(), besides the much
richer feature set of the latter, is that qWarning() will not pass
on file and line number information in release mode, but QWARN() will.
This is an acceptable loss of functionality, considering that the user
can override this behavior by defining QT_MESSAGELOGCONTEXT.

[ChangeLog][QtTest] QWARN() has been deprecated in favor of qWarning()

Pick-to: 6.2
Change-Id: I5a2431ce48c47392244560dd520953b9fc735c85
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2021-08-04 19:31:51 +02:00
..
.gitattributes
.gitignore
bom.ini
CMakeLists.txt QSettings: Add support for QMetaType::Float 2021-01-15 18:51:15 +01:00
float.ini QSettings: Add support for QMetaType::Float 2021-01-15 18:51:15 +01:00
qsettings.qrc QSettings: Add support for QMetaType::Float 2021-01-15 18:51:15 +01:00
resourcefile2.ini
resourcefile3.ini
resourcefile4.ini
resourcefile5.ini
resourcefile6.plist Fix data corruption when reading byte arrays from QSettings 2017-02-03 15:37:58 +00:00
resourcefile.ini
tst_qsettings.cpp testlib: Deprecate QWARN() in favor of qWarning() 2021-08-04 19:31:51 +02:00
withcomments.ini Fix QSettings parsing of spaces after comment lines 2018-12-07 18:53:34 +00:00