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

Windows: QAbstractXmlNodeModel autotest crashes

    XMLWordPrintable

Details

    • 9f18ef6613e6babd64183601e75424aeb27e3560

    Description

      Windows: QAbstractXmlNodeModel autotest crashes:

      ********* Start testing of tst_QAbstractXmlNodeModel *********
      Config: Using QTest library 5.0.0, Qt 5.0.0
      PASS   : tst_QAbstractXmlNodeModel::initTestCase()
      PASS   : tst_QAbstractXmlNodeModel::constructor()
      PASS   : tst_QAbstractXmlNodeModel::objectSize()
      QWARN  : tst_QAbstractXmlNodeModel::nextFromSimpleAxis(The whole tree) Qt plugin loader: Compatibility plugin 'C:\qt\qt5\qtbase\plugins\bearer\qgenericbearer5.dll', need to load for accessing meta dat
      a.
      QWARN  : tst_QAbstractXmlNodeModel::nextFromSimpleAxis(The whole tree) Qt plugin loader: Compatibility plugin 'C:\qt\qt5\qtbase\plugins\bearer\qnativewifibearer5.dll', need to load for accessing meta
      data.
      Error FODC0002 in c:/qt/qt5/qtxmlpatterns/tests/auto/qabstractxmlnodemodel/tree.xml: Protocol "c" is unknown
      

      The QWARN message about plugins are unrelated to this crash.

      The problem is the testFilePath, which points to a local file but doesn't have "file:" as the scheme. The QUrl::isLocalFile() function doesn't consider URLs without "file:" local files anymore. The test case can be made to pass by adding "testFilePath.prepend("file:///");" line before testFilePath is used in the nextFromSimpleAxis() case.

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-24446
          # Subject Branch Project Status CR V

          Activity

            People

              e0348803 Miikka Heikkinen
              e0348803 Miikka Heikkinen
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes