From d48ffdd2982999873d9a2bdbe0adbd005659d10b Mon Sep 17 00:00:00 2001 From: kh1 Date: Wed, 4 Sep 2013 12:59:11 +0200 Subject: 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 Reviewed-by: Kai Koehne Reviewed-by: Tim Jenssen --- tests/auto/installer/binaryformat/tst_binaryformat.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/auto') 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."); } -- cgit v1.2.3