Commit 05ddf8489b91b4a28237cd2c72a97f4d3f33fa98
Don't fail if no printers are available.
| |   |
| 48 | 48 | #include <qpagesetupdialog.h> |
| 49 | 49 | #include <qpainter.h> |
| 50 | 50 | #include <qprintdialog.h> |
| #include <qprinterinfo.h> |
| 51 | 52 | #ifdef QT3_SUPPORT |
| 52 | 53 | #include <q3paintdevicemetrics.h> |
| 53 | 54 | #endif |
| … | … | |
| 558 | 558 | |
| 559 | 559 | void tst_QPrinter::outputFormatFromSuffix() |
| 560 | 560 | { |
| if (QPrinterInfo::availablePrinters().size() == 0) |
| QSKIP("No printers available.", SkipAll); |
| 561 | 563 | QPrinter p; |
| 562 | 564 | QVERIFY(p.outputFormat() == QPrinter::NativeFormat); |
| 563 | 565 | p.setOutputFileName("test.ps"); |