summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason McDonald <jason.mcdonald@nokia.com>2011-05-03 10:21:32 +1000
committerRohan McGovern <rohan.mcgovern@nokia.com>2011-05-18 10:46:45 +1000
commit7bd778117cae5f00c3d533976c321df86317e11a (patch)
tree990f25a52c0d75cc3d468ed3afab2c763c1897a1
parent3aa7455eab3600fff77d30edcd1e5c09fe57282f (diff)
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 (cherry picked from commit 57f6ed6664f55ccee62b81750a2b3520249503fd)
-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 47f2e734b7..8070ad27df 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;
}