qt5base-lts/tests/auto/corelib/tools
João Abecasis b143a65728 Add zero-termination checks to QString and QByteArray tests
This uses an alternative approach to the testing formerly introduced
in 4ef5a626. Zero-termination tests are injected into all QCOMPARE/QTEST
invocations. This makes such testing more thorough and widespread, and
gets seamlessly extended by future tests.

It also fixes an issue uncovered by the test where using a past-the-end
position with QString::insert(pos, char), could move uninitialized data
and clobber the null-terminator.

Change-Id: I7392580245b419ee65c3ae6f261b6e851d66dd4f
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
2012-04-05 08:19:14 +02:00
..
qalgorithms Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qarraydata Introduce QArrayDataPointer::needsDetach 2012-04-02 16:34:21 +02:00
qbitarray Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qbytearray Add zero-termination checks to QString and QByteArray tests 2012-04-05 08:19:14 +02:00
qbytearraymatcher Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qcache Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qchar Changed qchar unittest to check return from QFINDTESTDATA 2012-03-01 05:43:39 +01:00
qcontiguouscache Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qcryptographichash Add SHA-224, SHA-256, SHA-384, and SHA-512 support to QCryptographicHash 2012-02-27 22:24:00 +01:00
qdate Eliminate duplicate data row names from corelib autotests. 2012-02-14 06:19:16 +01:00
qdatetime Eliminate duplicate data row names from corelib autotests. 2012-02-14 06:19:16 +01:00
qeasingcurve QEasingCurve: implement move constructor 2012-02-21 15:28:40 +01:00
qelapsedtimer Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qexplicitlyshareddatapointer Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qfreelist Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qhash QHash security fix (1.5/2): qHash two arguments overload support 2012-04-04 13:02:58 +02:00
qline Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qlist Merge remote-tracking branch 'origin/master' into api_changes 2012-03-12 21:03:49 +01:00
qlocale Merge master into api_changes 2012-03-27 19:22:48 +02:00
qmap Fix loop conditions, after warnings from clang 2012-03-28 09:36:33 +02:00
qmargins Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qpair QPair: specialise QTypeInfo based on the typeinfos of its arguments 2012-03-01 14:26:06 +01:00
qpoint Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qqueue Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qrect Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qregexp Remove #if 0 sections from QRegExp autotest 2012-03-23 11:45:25 +01:00
qregularexpression QRegularExpression: minor fix to captureIndexForName 2012-03-08 22:00:53 +01:00
qringbuffer Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qscopedpointer Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qscopedvaluerollback Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qset containers: add C++11-style c{begin,end}() as alias for const{Begin,End}() 2012-03-17 09:10:57 +01:00
qsharedpointer tst_qsharedpointer: don't inherit from QSharedPointer 2012-03-23 11:22:40 +01:00
qsize Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qsizef Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qstl Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qstring Add zero-termination checks to QString and QByteArray tests 2012-04-05 08:19:14 +02:00
qstringbuilder Introduce initializer macros for QString- and QByteArrayData 2012-04-04 23:29:52 +02:00
qstringlist QRegularExpression: support for QStringList overloads 2012-03-21 11:43:30 +01:00
qstringmatcher Eliminate duplicate data row names from corelib autotests. 2012-02-14 06:19:16 +01:00
qstringref Eliminate duplicate data row names from corelib autotests. 2012-02-14 06:19:16 +01:00
qtextboundaryfinder Eliminate duplicate data row names from corelib autotests. 2012-02-14 06:19:16 +01:00
qtime QDateTime: Add validity checks 2012-01-31 04:18:37 +01:00
qtimeline Mark tst_qtimeline as insignificant on Windows 2012-03-15 00:50:47 +01:00
qvarlengtharray Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qvector Merge remote-tracking branch 'gerrit/master' into containers 2012-02-05 21:26:33 +01:00
tools.pro Merge remote-tracking branch 'origin/api_changes' into containters 2012-03-08 12:02:41 +01:00