qt5base-lts/tests/auto/testlib/selftests
Thiago Macieira 579526cfec Make the printing of complex Unicode in a QString prettier
This also has the advantage of not requiring the use of the locale
codec. Quite an advantage if you're debugging the locale codec. But it's
mostly so that we don't get question marks that hide the difference we
were trying to locate.

[ChangeLog][QtTest] QtTest now prints an escaped version of QStrings
that failed to compare with QCOMPARE. That is, instead of converting
non-printable characters to question marks, QtTest will print the
Unicode representation of the character in question.

Change-Id: I44c1ef3246b188c913dacd3ca4df02581356ea41
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
2014-02-16 06:54:18 +01:00
..
alive QtTest tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-27 03:54:20 +01:00
assert QtTest tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-27 03:54:20 +01:00
badxml Testlib: Use QString for messages in QAbstractTestLogger::addMessage() 2014-01-21 06:28:23 +01:00
benchlibcallgrind QtTest tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-27 03:54:20 +01:00
benchlibcounting QtTest tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-27 03:54:20 +01:00
benchlibeventcounter QtTest tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-27 03:54:20 +01:00
benchliboptions QtTest tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-27 03:54:20 +01:00
benchlibtickcounter QtTest tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-27 03:54:20 +01:00
benchlibwalltime QtTest tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-27 03:54:20 +01:00
cmptest support building with -no-gui 2013-10-11 21:03:30 +02:00
commandlinedata QtTest tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-27 03:54:20 +01:00
counting QtTest tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-27 03:54:20 +01:00
crashes WinRT: Fix various test compilations 2013-10-02 12:36:05 +02:00
datatable QtTest tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-27 03:54:20 +01:00
datetime QtTest tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-27 03:54:20 +01:00
differentexec QtTest tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-27 03:54:20 +01:00
exceptionthrow QtTest tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-27 03:54:20 +01:00
expectfail QtTest tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-27 03:54:20 +01:00
failcleanup QtTest tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-27 03:54:20 +01:00
failinit QtTest tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-27 03:54:20 +01:00
failinitdata QtTest tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-27 03:54:20 +01:00
fetchbogus QtTest tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-27 03:54:20 +01:00
findtestdata QtTest tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-27 03:54:20 +01:00
float QtTest tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-27 03:54:20 +01:00
globaldata QtTest tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-27 03:54:20 +01:00
longstring QtTest tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-27 03:54:20 +01:00
maxwarnings QtTest tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-27 03:54:20 +01:00
multiexec QtTest tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-27 03:54:20 +01:00
printdatatags QtTest tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-27 03:54:20 +01:00
printdatatagswithglobaltags QtTest tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-27 03:54:20 +01:00
qexecstringlist QtTest tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-27 03:54:20 +01:00
silent QtTest tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-27 03:54:20 +01:00
singleskip QtTest tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-27 03:54:20 +01:00
skip QtTest tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-27 03:54:20 +01:00
skipcleanup QtTest tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-27 03:54:20 +01:00
skipinit QtTest tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-27 03:54:20 +01:00
skipinitdata QtTest tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-27 03:54:20 +01:00
sleep QtTest tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-27 03:54:20 +01:00
strcmp QtTest tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-27 03:54:20 +01:00
subtest QtTest tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-27 03:54:20 +01:00
test QtTest tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-27 03:54:20 +01:00
verbose1 QtTest tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-27 03:54:20 +01:00
verbose2 QtTest tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-27 03:54:20 +01:00
verifyexceptionthrown Add QVERIFY_EXCEPTION_THROWN macro for testing exceptions using QtTest 2013-11-26 07:37:06 +01:00
warnings TestLib: Ignore trailing space in QTest::ignoreMessage 2013-12-04 13:10:49 +01:00
xunit QtTest tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2013-03-27 03:54:20 +01:00
.gitignore
expected_alive.txt QtTest: Output correct library name 2013-05-27 00:41:46 +02:00
expected_assert.lightxml Testlib: Add test duration to xml output 2014-01-13 07:13:17 +01:00
expected_assert.txt QtTest: Output correct library name 2013-05-27 00:41:46 +02:00
expected_assert.xml Testlib: Add test duration to xml output 2014-01-13 07:13:17 +01:00
expected_assert.xunitxml
expected_badxml.lightxml Testlib: Use QString for messages in QAbstractTestLogger::addMessage() 2014-01-21 06:28:23 +01:00
expected_badxml.txt Testlib: Use QString for messages in QAbstractTestLogger::addMessage() 2014-01-21 06:28:23 +01:00
expected_badxml.xml Testlib: Use QString for messages in QAbstractTestLogger::addMessage() 2014-01-21 06:28:23 +01:00
expected_badxml.xunitxml Testlib: Use QString for messages in QAbstractTestLogger::addMessage() 2014-01-21 06:28:23 +01:00
expected_benchlibcallgrind.csv Add a CSV logging feature to the benchlib 2014-02-14 00:34:25 +01:00
expected_benchlibcallgrind.txt QtTest: Output correct library name 2013-05-27 00:41:46 +02:00
expected_benchlibcounting.csv Add a CSV logging feature to the benchlib 2014-02-14 00:34:25 +01:00
expected_benchlibcounting.lightxml Testlib: Add test duration to xml output 2014-01-13 07:13:17 +01:00
expected_benchlibcounting.txt Update tests to normalizes the paths by using script. 2014-01-06 12:50:47 +01:00
expected_benchlibcounting.xml Testlib: Add test duration to xml output 2014-01-13 07:13:17 +01:00
expected_benchlibcounting.xunitxml
expected_benchlibeventcounter.csv Add a CSV logging feature to the benchlib 2014-02-14 00:34:25 +01:00
expected_benchlibeventcounter.lightxml Testlib: Add test duration to xml output 2014-01-13 07:13:17 +01:00
expected_benchlibeventcounter.txt QtTest: Output correct library name 2013-05-27 00:41:46 +02:00
expected_benchlibeventcounter.xml Testlib: Add test duration to xml output 2014-01-13 07:13:17 +01:00
expected_benchlibeventcounter.xunitxml
expected_benchliboptions.csv Add a CSV logging feature to the benchlib 2014-02-14 00:34:25 +01:00
expected_benchliboptions.txt QtTest: Output correct library name 2013-05-27 00:41:46 +02:00
expected_benchlibtickcounter.csv Add a CSV logging feature to the benchlib 2014-02-14 00:34:25 +01:00
expected_benchlibtickcounter.lightxml Testlib: Add test duration to xml output 2014-01-13 07:13:17 +01:00
expected_benchlibtickcounter.txt Update tests to normalizes the paths by using script. 2014-01-06 12:50:47 +01:00
expected_benchlibtickcounter.xml Testlib: Add test duration to xml output 2014-01-13 07:13:17 +01:00
expected_benchlibtickcounter.xunitxml
expected_benchlibwalltime.csv Add a CSV logging feature to the benchlib 2014-02-14 00:34:25 +01:00
expected_benchlibwalltime.lightxml Testlib: Add test duration to xml output 2014-01-13 07:13:17 +01:00
expected_benchlibwalltime.txt Update tests to normalizes the paths by using script. 2014-01-06 12:50:47 +01:00
expected_benchlibwalltime.xml Testlib: Add test duration to xml output 2014-01-13 07:13:17 +01:00
expected_benchlibwalltime.xunitxml
expected_cmptest.lightxml Make the printing of complex Unicode in a QString prettier 2014-02-16 06:54:18 +01:00
expected_cmptest.txt Make the printing of complex Unicode in a QString prettier 2014-02-16 06:54:18 +01:00
expected_cmptest.xml Make the printing of complex Unicode in a QString prettier 2014-02-16 06:54:18 +01:00
expected_cmptest.xunitxml Make the printing of complex Unicode in a QString prettier 2014-02-16 06:54:18 +01:00
expected_commandlinedata.lightxml Testlib: Add test duration to xml output 2014-01-13 07:13:17 +01:00
expected_commandlinedata.txt Update tests to normalizes the paths by using script. 2014-01-06 12:50:47 +01:00
expected_commandlinedata.xml Testlib: Add test duration to xml output 2014-01-13 07:13:17 +01:00
expected_commandlinedata.xunitxml
expected_counting.lightxml Testlib: Add test duration to xml output 2014-01-13 07:13:17 +01:00
expected_counting.txt Update tests to normalizes the paths by using script. 2014-01-06 12:50:47 +01:00
expected_counting.xml Testlib: Add test duration to xml output 2014-01-13 07:13:17 +01:00
expected_counting.xunitxml Remove trailing space from QDebug stream 2013-12-06 13:33:10 +01:00
expected_crashes_1.txt QtTest: Output correct library name 2013-05-27 00:41:46 +02:00
expected_crashes_2.txt QtTest: Output correct library name 2013-05-27 00:41:46 +02:00
expected_crashes_3.txt QtTest: Output correct library name 2013-05-27 00:41:46 +02:00
expected_datatable.lightxml Testlib: Add test duration to xml output 2014-01-13 07:13:17 +01:00
expected_datatable.txt Update tests to normalizes the paths by using script. 2014-01-06 12:50:47 +01:00
expected_datatable.xml Testlib: Add test duration to xml output 2014-01-13 07:13:17 +01:00
expected_datatable.xunitxml
expected_datetime.lightxml Testlib: Add test duration to xml output 2014-01-13 07:13:17 +01:00
expected_datetime.txt Update tests to normalizes the paths by using script. 2014-01-06 12:50:47 +01:00
expected_datetime.xml Testlib: Add test duration to xml output 2014-01-13 07:13:17 +01:00
expected_datetime.xunitxml TestLib: align the colons so the "actual" and "expected" align too 2013-07-21 03:01:06 +02:00
expected_differentexec.txt QtTest: Output correct library name 2013-05-27 00:41:46 +02:00
expected_exceptionthrow.lightxml Testlib: Add test duration to xml output 2014-01-13 07:13:17 +01:00
expected_exceptionthrow.txt Update tests to normalizes the paths by using script. 2014-01-06 12:50:47 +01:00
expected_exceptionthrow.xml Testlib: Add test duration to xml output 2014-01-13 07:13:17 +01:00
expected_exceptionthrow.xunitxml
expected_expectfail.lightxml Testlib: Add test duration to xml output 2014-01-13 07:13:17 +01:00
expected_expectfail.txt Update tests to normalizes the paths by using script. 2014-01-06 12:50:47 +01:00
expected_expectfail.xml Testlib: Add test duration to xml output 2014-01-13 07:13:17 +01:00
expected_expectfail.xunitxml
expected_failcleanup.lightxml Testlib: Add test duration to xml output 2014-01-13 07:13:17 +01:00
expected_failcleanup.txt Update tests to normalizes the paths by using script. 2014-01-06 12:50:47 +01:00
expected_failcleanup.xml Testlib: Add test duration to xml output 2014-01-13 07:13:17 +01:00
expected_failcleanup.xunitxml
expected_failinit.lightxml Testlib: Add test duration to xml output 2014-01-13 07:13:17 +01:00
expected_failinit.txt Update tests to normalizes the paths by using script. 2014-01-06 12:50:47 +01:00
expected_failinit.xml Testlib: Add test duration to xml output 2014-01-13 07:13:17 +01:00
expected_failinit.xunitxml
expected_failinitdata.lightxml Testlib: Add test duration to xml output 2014-01-13 07:13:17 +01:00
expected_failinitdata.txt Update tests to normalizes the paths by using script. 2014-01-06 12:50:47 +01:00
expected_failinitdata.xml Testlib: Add test duration to xml output 2014-01-13 07:13:17 +01:00
expected_failinitdata.xunitxml
expected_fetchbogus.lightxml Testlib: Add test duration to xml output 2014-01-13 07:13:17 +01:00
expected_fetchbogus.txt QtTest: Output correct library name 2013-05-27 00:41:46 +02:00
expected_fetchbogus.xml Testlib: Add test duration to xml output 2014-01-13 07:13:17 +01:00
expected_fetchbogus.xunitxml
expected_findtestdata.lightxml Testlib: Add test duration to xml output 2014-01-13 07:13:17 +01:00
expected_findtestdata.txt Update tests to normalizes the paths by using script. 2014-01-06 12:50:47 +01:00
expected_findtestdata.xml Testlib: Add test duration to xml output 2014-01-13 07:13:17 +01:00
expected_findtestdata.xunitxml
expected_float.txt Update tests to normalizes the paths by using script. 2014-01-06 12:50:47 +01:00
expected_globaldata.lightxml Testlib: Add test duration to xml output 2014-01-13 07:13:17 +01:00
expected_globaldata.txt Update tests to normalizes the paths by using script. 2014-01-06 12:50:47 +01:00
expected_globaldata.xml Testlib: Add test duration to xml output 2014-01-13 07:13:17 +01:00
expected_globaldata.xunitxml Remove trailing space from QDebug stream 2013-12-06 13:33:10 +01:00
expected_longstring.lightxml Testlib: Add test duration to xml output 2014-01-13 07:13:17 +01:00
expected_longstring.txt Update tests to normalizes the paths by using script. 2014-01-06 12:50:47 +01:00
expected_longstring.xml Testlib: Add test duration to xml output 2014-01-13 07:13:17 +01:00
expected_longstring.xunitxml
expected_maxwarnings.lightxml Testlib: Add test duration to xml output 2014-01-13 07:13:17 +01:00
expected_maxwarnings.txt QtTest: Output correct library name 2013-05-27 00:41:46 +02:00
expected_maxwarnings.xml Testlib: Add test duration to xml output 2014-01-13 07:13:17 +01:00
expected_maxwarnings.xunitxml
expected_multiexec.txt QtTest: Output correct library name 2013-05-27 00:41:46 +02:00
expected_printdatatags.txt
expected_printdatatagswithglobaltags.txt
expected_qexecstringlist.txt QtTest: Output correct library name 2013-05-27 00:41:46 +02:00
expected_silent.txt Update tests to normalizes the paths by using script. 2014-01-06 12:50:47 +01:00
expected_singleskip.lightxml Testlib: Add test duration to xml output 2014-01-13 07:13:17 +01:00
expected_singleskip.txt Update tests to normalizes the paths by using script. 2014-01-06 12:50:47 +01:00
expected_singleskip.xml Testlib: Add test duration to xml output 2014-01-13 07:13:17 +01:00
expected_singleskip.xunitxml
expected_skip.lightxml Testlib: Add test duration to xml output 2014-01-13 07:13:17 +01:00
expected_skip.txt Update tests to normalizes the paths by using script. 2014-01-06 12:50:47 +01:00
expected_skip.xml Testlib: Add test duration to xml output 2014-01-13 07:13:17 +01:00
expected_skip.xunitxml
expected_skipcleanup.lightxml Testlib: Add test duration to xml output 2014-01-13 07:13:17 +01:00
expected_skipcleanup.txt Update tests to normalizes the paths by using script. 2014-01-06 12:50:47 +01:00
expected_skipcleanup.xml Testlib: Add test duration to xml output 2014-01-13 07:13:17 +01:00
expected_skipcleanup.xunitxml
expected_skipinit.lightxml Testlib: Add test duration to xml output 2014-01-13 07:13:17 +01:00
expected_skipinit.txt Update tests to normalizes the paths by using script. 2014-01-06 12:50:47 +01:00
expected_skipinit.xml Testlib: Add test duration to xml output 2014-01-13 07:13:17 +01:00
expected_skipinit.xunitxml
expected_skipinitdata.lightxml Testlib: Add test duration to xml output 2014-01-13 07:13:17 +01:00
expected_skipinitdata.txt Update tests to normalizes the paths by using script. 2014-01-06 12:50:47 +01:00
expected_skipinitdata.xml Testlib: Add test duration to xml output 2014-01-13 07:13:17 +01:00
expected_skipinitdata.xunitxml
expected_sleep.txt QtTest: Output correct library name 2013-05-27 00:41:46 +02:00
expected_strcmp.lightxml Testlib: Add test duration to xml output 2014-01-13 07:13:17 +01:00
expected_strcmp.txt Update tests to normalizes the paths by using script. 2014-01-06 12:50:47 +01:00
expected_strcmp.xml Testlib: Add test duration to xml output 2014-01-13 07:13:17 +01:00
expected_strcmp.xunitxml TestLib: align the colons so the "actual" and "expected" align too 2013-07-21 03:01:06 +02:00
expected_subtest.lightxml Make the printing of complex Unicode in a QString prettier 2014-02-16 06:54:18 +01:00
expected_subtest.txt Make the printing of complex Unicode in a QString prettier 2014-02-16 06:54:18 +01:00
expected_subtest.xml Make the printing of complex Unicode in a QString prettier 2014-02-16 06:54:18 +01:00
expected_subtest.xunitxml Make the printing of complex Unicode in a QString prettier 2014-02-16 06:54:18 +01:00
expected_verbose1.lightxml Testlib: Add test duration to xml output 2014-01-13 07:13:17 +01:00
expected_verbose1.txt Update tests to normalizes the paths by using script. 2014-01-06 12:50:47 +01:00
expected_verbose1.xml Testlib: Add test duration to xml output 2014-01-13 07:13:17 +01:00
expected_verbose1.xunitxml Remove trailing space from QDebug stream 2013-12-06 13:33:10 +01:00
expected_verbose2.lightxml Testlib: Add test duration to xml output 2014-01-13 07:13:17 +01:00
expected_verbose2.txt Update tests to normalizes the paths by using script. 2014-01-06 12:50:47 +01:00
expected_verbose2.xml Testlib: Add test duration to xml output 2014-01-13 07:13:17 +01:00
expected_verbose2.xunitxml Remove trailing space from QDebug stream 2013-12-06 13:33:10 +01:00
expected_verifyexceptionthrown.lightxml Testlib: Add test duration to xml output 2014-01-13 07:13:17 +01:00
expected_verifyexceptionthrown.txt Update tests to normalizes the paths by using script. 2014-01-06 12:50:47 +01:00
expected_verifyexceptionthrown.xml Testlib: Add test duration to xml output 2014-01-13 07:13:17 +01:00
expected_verifyexceptionthrown.xunitxml Add QVERIFY_EXCEPTION_THROWN macro for testing exceptions using QtTest 2013-11-26 07:37:06 +01:00
expected_warnings.lightxml Testlib: Add test duration to xml output 2014-01-13 07:13:17 +01:00
expected_warnings.txt Add overload of QTest::ignoreMessage() taking a QRegularExpression. 2013-11-17 19:10:22 +01:00
expected_warnings.xml Testlib: Add test duration to xml output 2014-01-13 07:13:17 +01:00
expected_warnings.xunitxml Add overload of QTest::ignoreMessage() taking a QRegularExpression. 2013-11-17 19:10:22 +01:00
expected_xunit.lightxml Testlib: Add test duration to xml output 2014-01-13 07:13:17 +01:00
expected_xunit.txt Update tests to normalizes the paths by using script. 2014-01-06 12:50:47 +01:00
expected_xunit.xml Testlib: Add test duration to xml output 2014-01-13 07:13:17 +01:00
expected_xunit.xunitxml
generate_expected_output.py Testlib/generate_expected_output.py: Fix encoding. 2014-01-18 09:20:24 +01:00
selftests.pri Add QVERIFY_EXCEPTION_THROWN macro for testing exceptions using QtTest 2013-11-26 07:37:06 +01:00
selftests.pro
selftests.qrc Add a CSV logging feature to the benchlib 2014-02-14 00:34:25 +01:00
tst_selftests.cpp Add a CSV logging feature to the benchlib 2014-02-14 00:34:25 +01:00