Fix logic error in large file autotest
authorJason McDonald <jason.mcdonald@nokia.com>
Thu, 21 Apr 2011 01:15:35 +0000 (11:15 +1000)
committerRohan McGovern <rohan.mcgovern@nokia.com>
Wed, 18 May 2011 00:46:41 +0000 (10:46 +1000)
commit9e0049f656c7ec073ec042552ec7be1fb3946755
treeb93a050e54923c44ee215131d75027397f8998d5
parent2d471a2bef76237e6796e011d06a96b34c4ca96e
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)
tests/auto/qfile/largefile/tst_largefile.cpp