summaryrefslogtreecommitdiffstats
path: root/tests/auto/printsupport/kernel/qprinter/tst_qprinter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/printsupport/kernel/qprinter/tst_qprinter.cpp')
-rw-r--r--tests/auto/printsupport/kernel/qprinter/tst_qprinter.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/auto/printsupport/kernel/qprinter/tst_qprinter.cpp b/tests/auto/printsupport/kernel/qprinter/tst_qprinter.cpp
index ca7fd4f7af..6977bbe8b4 100644
--- a/tests/auto/printsupport/kernel/qprinter/tst_qprinter.cpp
+++ b/tests/auto/printsupport/kernel/qprinter/tst_qprinter.cpp
@@ -985,7 +985,16 @@ void tst_QPrinter::taskQTBUG4497_reusePrinterOnDifferentFiles()
QFile file2("out2.ps");
QVERIFY(file2.open(QIODevice::ReadOnly));
- QCOMPARE(file1.readAll(), file2.readAll());
+ while (!file1.atEnd() && !file2.atEnd()) {
+ QByteArray file1Line = file1.readLine();
+ QByteArray file2Line = file2.readLine();
+
+ if (!file1Line.startsWith("%%CreationDate"))
+ QCOMPARE(file1Line, file2Line);
+ }
+
+ QVERIFY(file1.atEnd());
+ QVERIFY(file2.atEnd());
}
void tst_QPrinter::testCurrentPage()