summaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorkh1 <karsten.heimrich@digia.com>2013-09-04 12:59:11 +0200
committerKarsten Heimrich <karsten.heimrich@digia.com>2013-09-10 13:43:29 +0200
commitd48ffdd2982999873d9a2bdbe0adbd005659d10b (patch)
treeaa1a1da4fd3f9a1cb3f479451371cf7dc3465688 /tests/auto
parent9d97d133ccb3c0b091639cf58fd3dcf69fa6e39b (diff)
Rewrite function to use QFile::map().
Once the data is mapped into memory, searching backwards is way faster. Change-Id: I31667095712cfba95a8255e04d217ed9242fd2a8 Reviewed-by: Niels Weber <niels.weber@digia.com> Reviewed-by: Kai Koehne <kai.koehne@digia.com> Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/installer/binaryformat/tst_binaryformat.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/installer/binaryformat/tst_binaryformat.cpp b/tests/auto/installer/binaryformat/tst_binaryformat.cpp
index 40509fd18..6e520dc3e 100644
--- a/tests/auto/installer/binaryformat/tst_binaryformat.cpp
+++ b/tests/auto/installer/binaryformat/tst_binaryformat.cpp
@@ -92,7 +92,7 @@ private slots:
void testFindMagicCookieWithError()
{
- QTest::ignoreMessage(QtDebugMsg, "create Error-Exception: \"Searched whole file, no marker found\" ");
+ QTest::ignoreMessage(QtDebugMsg, "create Error-Exception: \"No marker found, stopped after 50.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()), "Searched whole file, no marker found");
+ QCOMPARE(qPrintable(error.message()), "No marker found, stopped after 50.00 KiB.");
} catch (...) {
QFAIL("Unexpected error.");
}