summaryrefslogtreecommitdiffstats
path: root/tests/auto/qfile/largefile
diff options
context:
space:
mode:
authorJason McDonald <jason.mcdonald@nokia.com>2011-05-03 00:21:32 (GMT)
committerJason McDonald <jason.mcdonald@nokia.com>2011-05-05 02:04:51 (GMT)
commit57f6ed6664f55ccee62b81750a2b3520249503fd (patch)
tree0946b96f2f0a5ecec7ec0445bd7d02955213024b /tests/auto/qfile/largefile
parentf18e0e01468899731bc3777649d69fd6d0041012 (diff)
downloadQt-57f6ed6664f55ccee62b81750a2b3520249503fd.zip
Qt-57f6ed6664f55ccee62b81750a2b3520249503fd.tar.gz
Qt-57f6ed6664f55ccee62b81750a2b3520249503fd.tar.bz2
Remove Q_ASSERT's from large file autotest.
These assertions were made obsolete by the previous change to this test. Change-Id: I3156b273a727f753a6c093c8fc7453b694c777ee Task-number: QTBUG-17582 Reviewed-by: Rohan McGovern
Diffstat (limited to 'tests/auto/qfile/largefile')
-rw-r--r--tests/auto/qfile/largefile/tst_largefile.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/tests/auto/qfile/largefile/tst_largefile.cpp b/tests/auto/qfile/largefile/tst_largefile.cpp
index 47f2e73..8070ad2 100644
--- a/tests/auto/qfile/largefile/tst_largefile.cpp
+++ b/tests/auto/qfile/largefile/tst_largefile.cpp
@@ -160,13 +160,10 @@ static inline void appendRaw(QByteArray &array, T data)
*/
static inline void topUpWith(QByteArray &array, QByteArray filler, int size)
{
- Q_ASSERT(filler.size() > 0);
-
for (int i = (size - array.size()) / filler.size(); i > 0; --i)
array.append(filler);
if (array.size() < size) {
- Q_ASSERT(size - array.size() < filler.size());
array.append(filler.left(size - array.size()));
}
}
@@ -212,8 +209,6 @@ static inline QByteArray generateDataBlock(int blockSize, QString text, qint64 u
appendRaw(block, userBits);
appendRaw(block, randomBits);
- Q_ASSERT( block.size() == blockSize );
-
++counter;
return block;
}