Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-24411

QPrinterInfo autotest is unreliable

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2: Important
    • 5.0.0
    • 5.0.0
    • GUI: Printing
    • None

    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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            johnlayt John Layt
            jasmcdon Jason McDonald (Closed Nokia Identity. Please assign to "macadder" instead) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes