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

tst_QMimeDatabase::initTestCase() fails in the CI

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 5.9.0 Beta 2
    • 5.9.0 Alpha
    • Core: Other
    • Ubuntu 14.04, OpenSUSE 42.1
    • 1cbf402ea67f78411444427f33787b1df376468b

      This has failed around 6 times from the beginning of Feb.

      ********* Start testing of tst_QMimeDatabase *********
      Config: Using QtTest library 5.9.0, Qt 5.9.0 (x86_64-little_endian-lp64 shared (dynamic) debug build; by GCC 4.8.5)
      QDEBUG : tst_QMimeDatabase::initTestCase() 
      Global XDG_DATA_DIRS:  "/tmp/tst_qmimedatabase-Or5yZN/global"
      WARNING: tst_QMimeDatabase::initTestCase() testdata testfiles could not be located!
         Loc: [../tst_qmimedatabase.cpp(157)]
      QWARN  : tst_QMimeDatabase::initTestCase() 
      Cannot find the shared-mime-info test suite
      starting from: /home/qt/work/qt/qtbase/tests/auto/corelib/mimetypes/qmimedatabase/qmimedatabase-cache
      cd tests/auto/corelib/mimetypes/qmimedatabase
      wget http://cgit.freedesktop.org/xdg/shared-mime-info/snapshot/Release-1-0.zip
      unzip Release-1-0.zip
      ln -s Release-1-0/tests testfiles
      
      QDEBUG : tst_QMimeDatabase::initTestCase() runUpdateMimeDatabase: running /usr/bin/update-mime-database /tmp/tst_qmimedatabase-Or5yZN/global/mime ...
      QDEBUG : tst_QMimeDatabase::initTestCase() runUpdateMimeDatabase: done, false 30921 ms
      QWARN  : tst_QMimeDatabase::initTestCase() QProcess: Destroyed while process ("/usr/bin/update-mime-database") is still running.
      FAIL!  : tst_QMimeDatabase::initTestCase() 'QFile::exists(mimeDirName + QStringLiteral("/mime.cache"))' returned FALSE. ()
         Loc: [tst_qmimedatabase-cache.cpp(44)]
      PASS   : tst_QMimeDatabase::cleanupTestCase()
      Totals: 1 passed, 1 failed, 0 skipped, 0 blacklisted, 30941ms
      ********* Finished testing of tst_QMimeDatabase *********
      Makefile:317: recipe for target 'check' failed
      make: *** [check] Error 1
      
      agent:2017/02/08 23:24:49 build.go:200: Process finished with error: exit status 2
      agent:2017/02/08 23:24:49 build.go:152: Error reading from stdout/err: exit status 2
      agent:2017/02/08 23:25:09 build.go:270: [make check -j1] 900 1200
      /home/qt/work/qt/qtbase/tests/auto/corelib/mimetypes/qmimedatabase/qmimedatabase-cache/target_wrapper.sh  ./tst_qmimedatabase-cache initTestCase
      Unknown test function: 'initTestCase'. Possible matches:
      
      ./tst_qmimedatabase-cache -functions
      lists all available test functions.
      Makefile:317: recipe for target 'check' failed
      make: *** [check] Error 1
      

      build log: http://testresults.qt.io/logs/qt/qtbase/2cab6611a388361b5a77ccff0e11c4cb657a3328/LinuxUbuntu_14_04x86_64LinuxUbuntu_14_04x86_64GCCqtci-linux-Ubuntu-14.04-x86_64-9ac0fdNoWidgets_ForceDebugInfo/85d6b000f945a84bc84a4f01f53ac65bc05cbe86/testrun_1487068294/testlog.txt.gz

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

            dfaure_kdab David Faure
            mipohjan Milla Pohjanheimo
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes