qt5base-lts/tests/auto
Alex Trotsenko 7d257aab81 QIODevice: handle incomplete reads
Introduce a transaction mechanism that gives the ability to read the
data atomically. Current implementation supports transactions for both
types of devices. For sequential devices, it records the whole input
stream during transaction. For random-access devices, device position
is saved when transaction starts. If an error occurs, the application
may be able to recover the input stream by rolling back to the start
point.

Also, QIODevice::peek() was rewritten to make use of transactions
internally. The replacement of QIODevicePrivateLinearBuffer by
QRingBuffer is closely entangled with that, which makes it unfeasible
to do separately.

Bump the TypeInformationVersion field in qtHookData, to notify the
Qt Creator developers that the offset of QFilePrivate::fileName was
changed and dumpers should be adapted.

[ChangeLog][QtCore] Added QIODevice's startTransaction(),
commitTransaction(), rollbackTransaction(), isTransactionStarted()
functions to support the read transactions.

Task-number: QTBUG-44418
Change-Id: I3564b343ebeeaaf7c48a1dcdb7ef0a7ffec550f2
Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
2016-01-12 18:00:58 +00:00
..
android Fix typo in test results report for android 2015-07-28 21:16:19 +00:00
bic/data bic: Add 5.{1,2,3,4}.0 bic data for linux-gcc-amd64 2015-02-14 06:54:20 +00:00
cmake Prospective fix for running cmake tests with -no-widgets 2016-01-07 19:29:36 +00:00
compilerwarnings/data Fixed license headers 2015-02-17 18:46:09 +00:00
concurrent Tests: Remove CONFIG += parallel_test. 2015-09-05 07:16:50 +00:00
corelib QIODevice: handle incomplete reads 2016-01-12 18:00:58 +00:00
dbus Merge remote-tracking branch 'origin/5.6' into dev 2016-01-08 12:35:24 +01:00
gui Merge remote-tracking branch 'origin/5.6' into dev 2015-12-18 08:37:31 +01:00
guiapplauncher Fix path to examples part of tst_GuiAppLauncher 2015-02-13 07:28:15 +00:00
installed_cmake Add a unit test for testing Qt in its install location. 2013-07-02 23:08:54 +02:00
network Merge remote-tracking branch 'origin/5.6' into dev 2016-01-08 12:35:24 +01:00
opengl Remove insignificant flag for a platform not supported 2015-11-29 07:02:20 +00:00
other QIODevice: handle incomplete reads 2016-01-12 18:00:58 +00:00
printsupport Merge remote-tracking branch 'origin/5.6' into dev 2015-11-18 09:01:51 +01:00
shared Fix kerned advances in QRawFont on OS X and Windows 2015-11-25 19:53:46 +00:00
sql Merge remote-tracking branch 'origin/5.6' into dev 2015-11-23 07:13:00 +01:00
testlib Merge remote-tracking branch 'origin/5.6' into dev 2015-12-18 08:37:31 +01:00
tools Merge remote-tracking branch 'origin/5.6' into dev 2016-01-08 12:35:24 +01:00
widgets Merge remote-tracking branch 'origin/5.6' into dev 2016-01-08 12:35:24 +01:00
xml Merge remote-tracking branch 'origin/5.6' into dev 2015-11-04 20:18:14 +01:00
auto.pro Merge remote-tracking branch 'origin/5.6' into dev 2015-09-25 14:02:04 +02:00
network-settings.h Update copyright headers 2015-02-11 06:49:51 +00:00
qtest-config.h Update copyright headers 2015-02-11 06:49:51 +00:00
test.pl Update copyright headers 2015-02-11 06:49:51 +00:00