qt5base-lts/tests/auto/corelib/io
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
..
largefile testlib: Deprecate QWARN() in favor of qWarning() 2021-08-04 19:31:51 +02:00
qabstractfileengine Remove the qmake project files 2021-01-07 15:32:28 +01:00
qbuffer Remove the qmake project files 2021-01-07 15:32:28 +01:00
qdataurl Remove the qmake project files 2021-01-07 15:32:28 +01:00
qdebug Remove the qmake project files 2021-01-07 15:32:28 +01:00
qdir QDirIterator: add nextFileInfo() 2021-07-28 15:16:42 +02:00
qdiriterator QDirIterator: add nextFileInfo() 2021-07-28 15:16:42 +02:00
qfile tst_QFile: fix GCC -Wignored-qualifiers 2021-07-09 17:59:01 +02:00
qfileinfo testlib: Deprecate QWARN() in favor of qWarning() 2021-08-04 19:31:51 +02:00
qfileselector QFileSelector: Preserve path to root directory 2021-07-21 19:37:16 +02:00
qfilesystementry CMake: Remove the usage of QT_SOURCE_TREE from tests 2021-07-12 18:56:14 +02:00
qfilesystemmetadata Remove the qmake project files 2021-01-07 15:32:28 +01:00
qfilesystemwatcher Remove the qmake project files 2021-01-07 15:32:28 +01:00
qiodevice QIODevice: rework validation policy for read() functions 2021-08-01 10:50:32 +03:00
qipaddress Disable security warnings from MSVC in tests 2021-03-17 17:22:00 +01:00
qlockfile Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
qloggingcategory Remove the qmake project files 2021-01-07 15:32:28 +01:00
qloggingregistry QLoggingSettingsParser: port setContent() to QStringView 2021-06-16 13:22:18 +02:00
qnodebug Remove the qmake project files 2021-01-07 15:32:28 +01:00
qprocess tst_QProcess: increase wait time and remove ill-advised QCOMPARE 2021-05-03 20:43:01 +00:00
qprocess-noapplication Remove the qmake project files 2021-01-07 15:32:28 +01:00
qprocessenvironment Remove the qmake project files 2021-01-07 15:32:28 +01:00
qresourceengine QDirIterator: add nextFileInfo() 2021-07-28 15:16:42 +02:00
qsavefile Remove the qmake project files 2021-01-07 15:32:28 +01:00
qsettings testlib: Deprecate QWARN() in favor of qWarning() 2021-08-04 19:31:51 +02:00
qstandardpaths Remove the qmake project files 2021-01-07 15:32:28 +01:00
qstorageinfo Remove the qmake project files 2021-01-07 15:32:28 +01:00
qtemporarydir Unify behavior for long path or UNC prefix removal 2021-06-05 01:16:06 +02:00
qtemporaryfile QDirIterator: add nextFileInfo() 2021-07-28 15:16:42 +02:00
qurl Fix QUrl::fromLocalFile with long path prefix 2021-05-19 21:38:38 +02:00
qurlinternal Remove the qmake project files 2021-01-07 15:32:28 +01:00
qurlquery Remove the qmake project files 2021-01-07 15:32:28 +01:00
CMakeLists.txt tst_qprocess: enable test again for cross-compilations 2021-02-16 07:26:19 +02:00