Details
-
Bug
-
Resolution: Duplicate
-
P2: Important
-
5.0.0
-
None
-
Ubuntu 10.04.3 LTS
Linux my-host 2.6.32-36-generic-pae #79-Ubuntu SMP Tue Nov 8 23:25:26 UTC 2011 i686 GNU/Linux
lpstat output:
user@host:~$ lpstat -d
system default destination: xerox-5500dn
user@host:~$ lpstat -p
printer xerox-340A is idle. enabled since Tue 21 Feb 2012 07:53:43 AM EST
printer xerox-5500dn is idle. enabled since Tue 21 Feb 2012 07:53:43 AM EST
printer xerox-color is idle. enabled since Tue 21 Feb 2012 07:53:43 AM EST
Ubuntu 10.04.3 LTS Linux my-host 2.6.32-36-generic-pae #79-Ubuntu SMP Tue Nov 8 23:25:26 UTC 2011 i686 GNU/Linux lpstat output: user@host :~$ lpstat -d system default destination: xerox-5500dn user@host :~$ lpstat -p printer xerox-340A is idle. enabled since Tue 21 Feb 2012 07:53:43 AM EST printer xerox-5500dn is idle. enabled since Tue 21 Feb 2012 07:53:43 AM EST printer xerox-color is idle. enabled since Tue 21 Feb 2012 07:53:43 AM EST
Description
When running the QPrinterInfo autotest (qtbase/tests/auto/gui/painting/qprinterinfo/tst_qprinterinfo.cpp) on my workstation I get two failures:
FAIL! : tst_QPrinterInfo::testForDefaultPrinter() No default printer reported by Qt, although there is one
Loc: [/home/user/dev/qt5/qtbase/tests/auto/gui/painting/qprinterinfo/tst_qprinterinfo.cpp(241)]
FAIL! : tst_QPrinterInfo::testForPrinters() Compared values are not the same
Actual (printers.size()): 0
Expected (sysPrinters.size()): 3
Loc: [/home/user/dev/qt5/qtbase/tests/auto/gui/painting/qprinterinfo/tst_qprinterinfo.cpp(279)]
In both cases, when the test uses lpstat to list the workstation's printers, the available printers are reported correctly, but when the test uses QPrinterInfo to list the printers, no printers are returned.