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>
This commit is contained in:
Jason McDonald 2012-02-21 12:57:27 +10:00 committed by Qt by Nokia
parent f8c3074faa
commit 4eb54f7f36

View File

@ -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;