qt5base-lts/tests/auto/other
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
..
android Add tests for QAndroidApplication's sdkVersion and activity 2021-05-13 01:41:36 +03:00
gestures Extend blacklisting of tst_gestures including all RHEL's 2021-04-13 08:20:48 +03:00
lancelot testlib: Deprecate QWARN() in favor of qWarning() 2021-08-04 19:31:51 +02:00
languagechange Remove the qmake project files 2021-01-07 15:32:28 +01:00
macgui Remove QEXPECT_FAIL from passing test 2021-03-31 10:20:07 +02:00
macnativeevents Remove the qmake project files 2021-01-07 15:32:28 +01:00
macplist Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
networkselftest Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
qabstractitemmodelutils Another round of replacing 0 with nullptr 2020-10-07 23:02:47 +02:00
qaccessibility Disable two tests in tst_QAccessibility on Wayland 2021-03-18 07:58:42 +01:00
qaccessibilitylinux Remove .prev_CMakeLists.txt files 2021-01-12 20:59:13 +01:00
qaccessibilitymac a11y: Report mixed state if QCheckBox is PartiallyChecked 2021-02-04 13:23:33 +00:00
qcomplextext Remove the qmake project files 2021-01-07 15:32:28 +01:00
qfocusevent testlib: Deprecate QWARN() in favor of qWarning() 2021-08-04 19:31:51 +02:00
qnetworkaccessmanager_and_qprogressdialog Remove the qmake project files 2021-01-07 15:32:28 +01:00
qobjectrace Fix crash in concurrent disconnect 2021-06-17 08:56:22 +02:00
qprocess_and_guieventloop Remove Qt dependency from some test helper executables 2021-04-15 20:38:44 +02:00
qsharedpointer_and_qwidget Remove the qmake project files 2021-01-07 15:32:28 +01:00
qvariant_common Split up the QMetaType unit test 2021-02-09 14:27:20 +01:00
sessionmanagement_macos Remove the qmake project files 2021-01-07 15:32:28 +01:00
toolsupport QObject: port to new property system 2021-04-21 15:34:28 +02:00
xkbkeyboard Remove the qmake project files 2021-01-07 15:32:28 +01:00
CMakeLists.txt Add tests for QAndroidApplication's sdkVersion and activity 2021-05-13 01:41:36 +03:00