summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason McDonald <jason.mcdonald@nokia.com>2012-02-21 12:57:27 +1000
committerQt by Nokia <qt-info@nokia.com>2012-02-21 06:10:43 +0100
commit4eb54f7f3678fb8b90086453dfc6303b48afe683 (patch)
tree2b847307ce9251de6efdae27691f76abdab1fdd3
parentf8c3074faa4d872f0c313bdf27ceb586fa1003e8 (diff)
Improve tst_QPrinterInfo::testForDefaultPrinter().
Be explicit about skipping the test when no default printer is present. Change-Id: If69b275eb0f490411471ec42798d8aefcc57fd83 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
-rw-r--r--tests/auto/gui/painting/qprinterinfo/tst_qprinterinfo.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/gui/painting/qprinterinfo/tst_qprinterinfo.cpp b/tests/auto/gui/painting/qprinterinfo/tst_qprinterinfo.cpp
index a2cfe7a473..2323dc8df3 100644
--- a/tests/auto/gui/painting/qprinterinfo/tst_qprinterinfo.cpp
+++ b/tests/auto/gui/painting/qprinterinfo/tst_qprinterinfo.cpp
@@ -221,7 +221,8 @@ void tst_QPrinterInfo::testForDefaultPrinter()
# else
QString defSysPrinter = getDefaultPrinterFromSystem();
# endif
- if (defSysPrinter == "") return;
+ if (defSysPrinter == "")
+ QSKIP("No default printer available");
QList<QPrinterInfo> list = QPrinterInfo::availablePrinters();
bool found = false;