tst_QPrinter: stabilize qprinter test

The CreationDate entry in the two PDF files can potentially
be different depending on when the test is run.
97b4c5a574 already accounts for it but
the current tag for creation date is '/CreationDate'. Therefore check
if the line contains 'CreationDate' instead.

Change-Id: I1fc069cf935bba07084ac4a0743ff05312374d10
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
bb10
Christian Ehrlicher 2019-01-19 18:59:55 +01:00
parent 9d2923c1b0
commit b1092a7d42
1 changed files with 1 additions and 1 deletions

View File

@ -644,7 +644,7 @@ void tst_QPrinter::taskQTBUG4497_reusePrinterOnDifferentFiles()
QByteArray file1Line = file1.readLine();
QByteArray file2Line = file2.readLine();
if (!file1Line.startsWith("%%CreationDate"))
if (!file1Line.contains("CreationDate"))
QCOMPARE(file1Line, file2Line);
}