From 2c175d3748dc60469c65ba005001f43a6d3b6243 Mon Sep 17 00:00:00 2001 From: John Layt Date: Sat, 15 Mar 2014 15:45:01 +0100 Subject: QPrinter - Expect failure of QPrinter page size test The page size test can get confused when two printer papers have the same size, but the code being tested is actaully correct. Put a temp QEXPECT_FAIL on the test and some debug statements so we can see why it fails and fix the test as required. Change-Id: I160ba2ed7344500d89bdcb9bb416863713fef84b Reviewed-by: Lars Knoll --- tests/auto/printsupport/kernel/qprinter/tst_qprinter.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/auto/printsupport/kernel/qprinter/tst_qprinter.cpp b/tests/auto/printsupport/kernel/qprinter/tst_qprinter.cpp index 613623759c..5d99cca8d9 100644 --- a/tests/auto/printsupport/kernel/qprinter/tst_qprinter.cpp +++ b/tests/auto/printsupport/kernel/qprinter/tst_qprinter.cpp @@ -741,8 +741,11 @@ void tst_QPrinter::customPaperNameSettingBySize() } } // Fail with the original values - if (!paperNameFound) + if (!paperNameFound) { + qDebug() << "supportedPageSizes() = " << sizes; + QEXPECT_FAIL("", "Paper Name mismatch: please report this failure at bugreports.qt-project.org", Continue); QCOMPARE(sizes.at(i).name(), printer.paperName()); + } } // Check setting a custom size after setting a standard one works -- cgit v1.2.3