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

Windows: QLibrary autotest fails

    XMLWordPrintable

Details

    • b491d02eb3217e9b5b61a2b8f7c599080e8b8bdb

    Description

      QLibrary autotest has many failures in Windows. These seem to stem from the change that was made to the test where previously it used current dir to look for dlls, but now uses application dir, which is not where the dlls end up in windows.

      ********* Start testing of tst_QLibrary *********
      Config: Using QTest library 5.0.0, Qt 5.0.0
      PASS   : tst_QLibrary::initTestCase()
      FAIL!  : tst_QLibrary::load(ok00) 'ok' returned FALSE. (Cannot load library c:/qt/qt5_vs2010/qtbase/tests/auto/corelib/plugin/qlibrary/debug/mylib: The specified module could not be found.)
      ..\tst_qlibrary.cpp(222) : failure location
      FAIL!  : tst_QLibrary::load(ok01 (with suffix)) 'ok' returned FALSE. (Cannot load library c:/qt/qt5_vs2010/qtbase/tests/auto/corelib/plugin/qlibrary/debug/mylib.dll: The specified module could not be found.)
      ..\tst_qlibrary.cpp(222) : failure location
      FAIL!  : tst_QLibrary::load(ok02 (with non-standard suffix)) 'ok' returned FALSE. (Cannot load library c:/qt/qt5_vs2010/qtbase/tests/auto/corelib/plugin/qlibrary/debug/mylib.dl2: The specified module could not be found.)
      ..\tst_qlibrary.cpp(222) : failure location
      FAIL!  : tst_QLibrary::load(ok03 (with many dots)) 'ok' returned FALSE. (Cannot load library c:/qt/qt5_vs2010/qtbase/tests/auto/corelib/plugin/qlibrary/debug/system.qt.test.mylib.dll: The specified module could not be found.)
      ..\tst_qlibrary.cpp(222) : failure location
      FAIL!  : tst_QLibrary::resolve(ok00) 'func != 0' returned FALSE. ()
      ..\tst_qlibrary.cpp(292) : failure location
      FAIL!  : tst_QLibrary::unload(mylib) 'ok' returned FALSE. (Cannot load library c:/qt/qt5_vs2010/qtbase/tests/auto/corelib/plugin/qlibrary/debug/mylib: The specified module could not be found.)
      ..\tst_qlibrary.cpp(253) : failure location
      PASS   : tst_QLibrary::unload_after_implicit_load()
      PASS   : tst_QLibrary::isLibrary()
      PASS   : tst_QLibrary::version()
      FAIL!  : tst_QLibrary::errorString(bad resolve) Compared values are not the same
         Actual (ok): 0
         Expected (true): 1
      ..\tst_qlibrary.cpp(399) : failure location
      FAIL!  : tst_QLibrary::errorString(good resolve) Compared values are not the same
         Actual (ok): 0
         Expected (true): 1
      ..\tst_qlibrary.cpp(399) : failure location
      FAIL!  : tst_QLibrary::loadHints(ok01 (with suffix)) 'ok' returned FALSE. ()
      ..\tst_qlibrary.cpp(464) : failure location
      FAIL!  : tst_QLibrary::loadHints(ok02 (with non-standard suffix)) 'ok' returned FALSE. ()
      ..\tst_qlibrary.cpp(464) : failure location
      FAIL!  : tst_QLibrary::loadHints(ok03 (with many dots)) 'ok' returned FALSE. ()
      ..\tst_qlibrary.cpp(464) : failure location
      FAIL!  : tst_QLibrary::fileName(ok02) 'ok' returned FALSE. (Cannot load library c:/qt/qt5_vs2010/qtbase/tests/auto/corelib/plugin/qlibrary/debug/mylib.dll: The specified module could not be found.)
      ..\tst_qlibrary.cpp(496) : failure location
      FAIL!  : tst_QLibrary::multipleInstancesForOneLibrary() Compared values are not the same
         Actual (lib1.isLoaded()): 0
         Expected (true): 1
      ..\tst_qlibrary.cpp(515) : failure location
      PASS   : tst_QLibrary::cleanupTestCase()
      Totals: 5 passed, 13 failed, 0 skipped
      ********* Finished testing of tst_QLibrary *********
      

      Remember to enable the test in CI after it is fixed.

      Attachments

        Issue Links

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

          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