summaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorkh1 <karsten.heimrich@digia.com>2013-09-24 14:14:14 +0200
committerKarsten Heimrich <karsten.heimrich@digia.com>2013-09-24 16:39:33 +0200
commitfc465784df7893abc180ede9b69b4e27aaa522f7 (patch)
treefb452b527a8cacda862ad66b366bfa79dc12e24a /tests/auto
parent74f1ba9329f70b9f4b716fa882774de883fbee75 (diff)
We can't expect a multiple of 8 during marker search.
Once the marker was on a position not matching a multiple of 8 from the end, the search would fail. Now decrement by 1 byte. Change-Id: Ia703c9074b3bef6b1a300865abfe24dcb2c8d5fd Reviewed-by: Tim Jenssen <tim.jenssen@digia.com> Reviewed-by: Niels Weber <niels.weber@digia.com>
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/installer/binaryformat/tst_binaryformat.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/installer/binaryformat/tst_binaryformat.cpp b/tests/auto/installer/binaryformat/tst_binaryformat.cpp
index 6e520dc3e..59f0e8e03 100644
--- a/tests/auto/installer/binaryformat/tst_binaryformat.cpp
+++ b/tests/auto/installer/binaryformat/tst_binaryformat.cpp
@@ -46,7 +46,7 @@
#include <QTest>
#include <QTemporaryFile>
-static const qint64 scTinySize = 51200LL;
+static const qint64 scTinySize = 72704LL;
static const qint64 scSmallSize = 524288LL;
static const qint64 scLargeSize = 2097152LL;
@@ -92,7 +92,7 @@ private slots:
void testFindMagicCookieWithError()
{
- QTest::ignoreMessage(QtDebugMsg, "create Error-Exception: \"No marker found, stopped after 50.00 KiB.\" ");
+ QTest::ignoreMessage(QtDebugMsg, "create Error-Exception: \"No marker found, stopped after 71.00 KiB.\" ");
QTemporaryFile file;
file.open();
@@ -103,7 +103,7 @@ private slots:
// throws
QInstaller::findMagicCookie(&file, QInstaller::MagicCookie);
} catch (const QInstaller::Error &error) {
- QCOMPARE(qPrintable(error.message()), "No marker found, stopped after 50.00 KiB.");
+ QCOMPARE(qPrintable(error.message()), "No marker found, stopped after 71.00 KiB.");
} catch (...) {
QFAIL("Unexpected error.");
}