qt5base-lts/tests/auto
João Abecasis 4ef5a6269c Add tests to verify QByteArray's zero termination
For data allocated and maintained by QByteArray, there's a guarantee
that data() is null-terminated. This holds true even for null and empty,
where logically the terminating character should never be dereferenced.

For tests that modify or generate QByteArrays, this ensures the
invariant is kept.

In the toFromHex() text, const-ness of temporary variables was dropped
to enable the test macro to be used, as the qualification didn't add
much to the test otherwise.

Change-Id: I7ee52e79e3a9df7de18c743f3698dab688e6bf0e
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
2012-03-30 11:21:34 +02:00
..
compilerwarnings/data Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
concurrent Remove commented code from qtconcurrentmap autotest. 2012-03-14 07:51:45 +01:00
corelib Add tests to verify QByteArray's zero termination 2012-03-30 11:21:34 +02:00
dbus Don't hardcode the order of elements in QHashes 2012-03-28 04:07:16 +02:00
gui Merge master into api_changes 2012-03-27 19:22:48 +02:00
guiapplauncher Update the documentation after moving examples. 2011-07-05 21:19:08 +02:00
network Port to the new QUrl API 2012-03-30 01:19:59 +02:00
opengl EGLFS: Integrate building into configure. 2012-03-21 03:03:29 +01:00
other Port to the new QUrl API 2012-03-30 01:19:59 +02:00
printsupport QPrinterInfo: remove a test that is too early 2012-03-24 17:07:52 +01:00
shared Refactor input context tests 2012-02-22 13:54:13 +01:00
sql Fix compilation of tst_QSqlThread: no need to use QBasicAtomicInt here 2012-03-24 17:07:52 +01:00
testlib testlib: Improve formatting of QCOMPARE failure messages. 2012-03-12 01:50:20 +01:00
tools Bootstrap qdbuscpp2xml. 2012-03-18 14:14:42 +01:00
widgets Remove WA_PaintOutsidePaintEvent 2012-03-28 11:22:11 +02:00
xml clean up qmake-generated projects 2012-02-24 05:18:30 +01:00
auto.pro Disable some tests and examples when --no-widgets is specified 2012-03-19 20:16:04 +01:00
network-settings.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
platformquirks.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
test.pl Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00