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

Windows: qdeclarativemoduleplugin autotest of qtquick1 fails

    XMLWordPrintable

Details

    • 6b96c229a5f04599c511843ce0fb8041a74c56b9

    Description

      Windows: qdeclarativemoduleplugin autotest of qtquick1 fails:

      FAIL!  : tst_qdeclarativemoduleplugin::importPluginWithQmlFile() 'path.at(0).isUpper() && path.at(1) == QLatin1Char(':')' returned FALSE. ()
      .\tst_qdeclarativemoduleplugin.cpp(192) : failure location
      

      Here is the problem code:

          QString path = importsDirectory();
      
          // QTBUG-16885: adding an import path with a lower-case "c:" causes assert failure
          // (this only happens if the plugin includes pure QML files)
          #ifdef Q_OS_WIN
              QVERIFY(path.at(0).isUpper() && path.at(1) == QLatin1Char(':'));
              path = path.at(0).toLower() + path.mid(1);
          #endif
      

      The failure is caused by drive letter being wrong case. The whole QVERIFY here is pointless, as all it is doing is verifying what QTest::qFindTestData() returned earlier when resolving the imports directory (path variable), which is in no way related to this test. The drive letter is anyway corrected on the very next line.

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-24471
          # 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