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

tst_QLibrary::version occasionally fails in CI

    XMLWordPrintable

    Details

      Description

      Occasionally tst_QLibrary tests don't pass. This happens on multiple platforms.

      Example failure:

      ********* Start testing of tst_QLibrary *********
      Config: Using QtTest library 5.12.0, Qt 5.12.0 (arm64-little_endian-lp64 shared (dynamic) release build; by GCC 6.3.0)
      PASS   : tst_QLibrary::initTestCase()
      PASS   : tst_QLibrary::load(ok00)
      PASS   : tst_QLibrary::load(notexist)
      PASS   : tst_QLibrary::load(badlibrary)
      PASS   : tst_QLibrary::load(ok01 (with suffix))
      PASS   : tst_QLibrary::load(ok02 (with non-standard suffix))
      PASS   : tst_QLibrary::load(ok03 (with many dots))
      PASS   : tst_QLibrary::resolve(ok00)
      PASS   : tst_QLibrary::resolve(bad00)
      PASS   : tst_QLibrary::resolve(bad01)
      PASS   : tst_QLibrary::unload(mylib)
      PASS   : tst_QLibrary::unload(ok01)
      PASS   : tst_QLibrary::unload_after_implicit_load()
      PASS   : tst_QLibrary::isLibrary(bad)
      PASS   : tst_QLibrary::isLibrary(.a)
      PASS   : tst_QLibrary::isLibrary(.bundle)
      PASS   : tst_QLibrary::isLibrary(.dll)
      PASS   : tst_QLibrary::isLibrary(.DLL)
      PASS   : tst_QLibrary::isLibrary(.dl2)
      PASS   : tst_QLibrary::isLibrary(.dylib)
      PASS   : tst_QLibrary::isLibrary(.sl)
      PASS   : tst_QLibrary::isLibrary(.so)
      PASS   : tst_QLibrary::isLibrary(.so+version)
      PASS   : tst_QLibrary::isLibrary(version+.so)
      PASS   : tst_QLibrary::isLibrary(version+.so+version)
      PASS   : tst_QLibrary::version(ok00, version 1)
      PASS   : tst_QLibrary::version(ok00, version 2)
      FAIL!  : tst_QLibrary::version(ok00, default to last version) Compared values are not the same
         Actual   (fnVersion())  : 1
         Expected (resultversion): 2
         Loc: [../tst_qlibrary.cpp(168)]
      PASS   : tst_QLibrary::errorString(bad load())
      PASS   : tst_QLibrary::errorString(call errorString() on QLibrary with no d-pointer (crashtest))
      FAIL!  : tst_QLibrary::errorString(bad resolve) '!lib.isLoaded() || lib.unload()' returned FALSE. ()
         Loc: [../tst_qlibrary.cpp(388)]
      FAIL!  : tst_QLibrary::errorString(good resolve) '!lib.isLoaded() || lib.unload()' returned FALSE. ()
         Loc: [../tst_qlibrary.cpp(388)]
      PASS   : tst_QLibrary::errorString(load invalid file)
      PASS   : tst_QLibrary::loadHints(ok01 (with suffix))
      PASS   : tst_QLibrary::loadHints(ok02 (with non-standard suffix))
      PASS   : tst_QLibrary::loadHints(ok03 (with many dots))
      PASS   : tst_QLibrary::fileName(ok02)
      FAIL!  : tst_QLibrary::multipleInstancesForOneLibrary() Compared values are not the same
         Actual   (lib1.isLoaded()): 1
         Expected (false)          : 0
         Loc: [../tst_qlibrary.cpp(485)]
      PASS   : tst_QLibrary::cleanupTestCase()
      Totals: 35 passed, 4 failed, 0 skipped, 0 blacklisted, 79ms
      ********* Finished testing of tst_QLibrary *********
      

        Attachments

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

          Activity

            People

            Assignee:
            kari.oikarinen Kari Oikarinen
            Reporter:
            kari.oikarinen Kari Oikarinen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes