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:
parent
f8c3074faa
commit
4eb54f7f36
@ -221,7 +221,8 @@ void tst_QPrinterInfo::testForDefaultPrinter()
|
|||||||
# else
|
# else
|
||||||
QString defSysPrinter = getDefaultPrinterFromSystem();
|
QString defSysPrinter = getDefaultPrinterFromSystem();
|
||||||
# endif
|
# endif
|
||||||
if (defSysPrinter == "") return;
|
if (defSysPrinter == "")
|
||||||
|
QSKIP("No default printer available");
|
||||||
|
|
||||||
QList<QPrinterInfo> list = QPrinterInfo::availablePrinters();
|
QList<QPrinterInfo> list = QPrinterInfo::availablePrinters();
|
||||||
bool found = false;
|
bool found = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user