qt5base-lts/tests/auto/qfile
Jason McDonald 9e0049f656 Fix logic error in large file autotest
The function generating data blocks was filling the block to 16 bytes
short of the blockSize, then appending three 8 byte values, causing the
block to grow 8 bytes beyond blockSize and then truncating it back to
blockSize.

This commit makes the code fill the block to 24 bytes short of the
blockSize, so that the block will always end up at the correct size and
truncation is not needed.

Change-Id: I9fe6e6d6cf7bc445513b53e0a910d205c4c8002f
Reviewed-by: Rohan McGovern
(cherry picked from commit b1eb564830ff1b754de14919ce5c1547e9758f7c)
2011-05-18 10:46:41 +10:00
..
largefile Fix logic error in large file autotest 2011-05-18 10:46:41 +10:00
resources Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
stdinprocess Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
test Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
.gitattributes Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
.gitignore Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
copy-fallback.qrc Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
dosfile.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
forCopying.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
forRenaming.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
noendofline.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
qfile.pro Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
qfile.qrc Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
rename-fallback.qrc Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
testfile.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
testlog.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
tst_qfile.cpp Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
two.dots.file Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00