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

QtCore: unit test failures when feature flags are disabled

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.9
    • Core: Other
    • None

    Description

      We are going to introduce unit test execution for QtLite configuration (for Aarch64):

      https://codereview.qt-project.org/c/qt/qt5/+/578852

       

      I did initial run without "Abort testing on first failure" flag here (for X86):

      https://coin.intra.qt.io/coin/integration/qt/qtbase/tasks/web_qt_qtbase_1723638811187

       

      It revealed that following test suites are failing:

      tst_qmetatype (Failed)

      tst_qvariant (Failed)

      tst_qobject (Failed) 

      tst_qdiriterator (Failed) 

      tst_qdirlisting (Failed)

      tst_qfile (Failed)

      tst_qtemporarydir (Failed)

      tst_qdir (Failed)

      tst_qresourceengine (Failed) 

      tst_qcborvalue (Failed) 

      tst_qcollator (Failed)

      tst_qlocale (Failed)

       

      I was able to reproduce issue locally with following commands:

      cd qtbase

      ./configure -nomake examples -release -optimize-size -static -ltcg -reduce-exports -gc-binaries -feature-linuxfb -disable-deprecated-up-to 0x070000 -no-feature-abstractbutton -no-feature-abstractslider -no-feature-accessibility -no-feature-action -no-feature-androiddeployqt -no-feature-appstore-compliant -no-feature-backtrace -no-feature-batch_test_support -no-feature-brotli -no-feature-calendarwidget -no-feature-cborstreamwriter -no-feature-clipboard -no-feature-colordialog -no-feature-columnview -no-feature-commandlinkbutton -no-feature-completer -no-feature-concatenatetablesproxymodel -no-feature-contextmenu -no-feature-cssparser -no-feature-cups -no-feature-datawidgetmapper -no-feature-datetimeedit -no-feature-datetimeparser -no-feature-dbus -no-feature-desktopservices -no-feature-dial -no-feature-dnslookup -no-feature-dockwidget -no-feature-dom -no-feature-dtls -no-feature-eglfs -no-feature-errormessage -no-feature-filesystemiterator -no-feature-filesystemmodel -no-feature-filesystemwatcher -no-feature-fontcombobox -no-feature-fontdialog -no-feature-fscompleter -no-feature-future -no-feature-gestures -no-feature-gif -no-feature-graphicseffect -no-feature-graphicsview -no-feature-gssapi -no-feature-harfbuzz -no-feature-highdpiscaling -no-feature-hijricalendar -no-feature-http -no-feature-ico -no-feature-icu -no-feature-identityproxymodel -no-feature-im -no-feature-imageformat_bmp -no-feature-imageformat_jpeg -no-feature-imageformat_ppm -no-feature-imageformat_xbm -no-feature-image_heuristic_mask -no-feature-imageio-text-loading -no-feature-image_text -no-feature-inputdialog -no-feature-islamiccivilcalendar -no-feature-jalalicalendar -no-feature-jpeg -no-feature-keysequenceedit -no-feature-lcdnumber -no-feature-libinput -no-feature-library -no-feature-lineedit -no-feature-linux-netlink -no-feature-localserver -no-feature-macdeployqt -no-feature-mainwindow -no-feature-mdiarea -no-feature-menu -no-feature-menubar -no-feature-messagebox -no-feature-mimetype -no-feature-movie -no-feature-mtdev -no-feature-multiprocess -no-feature-networkdiskcache -no-feature-networkinterface -no-feature-networkproxy -no-feature-ocsp -no-feature-opengl -no-feature-openssl -no-feature-pcre2 -no-feature-pdf -no-feature-permissions -no-feature-picture -no-feature-printdialog -no-feature-printer -no-feature-printpreviewdialog -no-feature-printpreviewwidget -no-feature-printsupport -no-feature-private_tests -no-feature-process -no-feature-processenvironment -no-feature-progressbar -no-feature-progressdialog -no-feature-proxymodel -no-feature-radiobutton -no-feature-raster-64bit -no-feature-raster-fp -no-feature-resizehandler -no-feature-rubberband -no-feature-sanitize_fuzzer_no_link -no-feature-schannel -no-feature-scroller -no-feature-securetransport -no-feature-sessionmanager -no-feature-settings -no-feature-sha3-fast -no-feature-sharedmemory -no-feature-shortcut -no-feature-sizegrip -no-feature-socks5 -no-feature-sortfilterproxymodel -no-feature-splashscreen -no-feature-sql -no-feature-sqlmodel -no-feature-sql-sqlite -no-feature-sspi -no-feature-stackedwidget -no-feature-statusbar -no-feature-statustip -no-feature-style-stylesheet -no-feature-syntaxhighlighter -no-feature-systemsemaphore -no-feature-systemtrayicon -no-feature-tabletevent -no-feature-tablewidget -no-feature-textbrowser -no-feature-texthtmlparser -no-feature-textmarkdownreader -no-feature-textmarkdownwriter -no-feature-textodfwriter -no-feature-timezone -no-feature-toolbar -no-feature-toolbox -no-feature-topleveldomain -no-feature-transposeproxymodel -no-feature-treewidget -no-feature-udpsocket -no-feature-undocommand -no-feature-undogroup -no-feature-undostack -no-feature-undoview -no-feature-valgrind -no-feature-vkgen -no-feature-vnc -no-feature-vulkan -no-feature-wasm-exceptions -no-feature-wasm-simd128 -no-feature-whatsthis -no-feature-wheelevent -no-feature-widgets -no-feature-widgettextcontrol -no-feature-windeployqt -no-feature-wizard -no-feature-xkbcommon -no-feature-xml -qpa linuxfb – -DOpenGL_GL_PREFERENCE=LEGACY -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -DQT_BUILD_TESTS=OFF -DCMAKE_AUTOGEN_VERBOSE=ON -DCMAKE_MESSAGE_LOG_LEVEL=STATUS -DCMAKE_INSTALL_PREFIX:PATH=/home/jari/work/install

      cmake --build . -j12 && cmake -DQT_BUILD_DIR=/home/jari/Qt/qt_git/qtbase -P /home/jari/Qt/qt_git/qtbase/libexec/qt-cmake-private-install.cmake

       

      mkdir qtbase_standalone_tests

      cd qtbase_standalone_tests

      /home/jari/work/install/libexec/qt-internal-configure-tests -DCMAKE_AUTOGEN_VERBOSE=ON -DCMAKE_MESSAGE_LOG_LEVEL=STATUS -S /home/jari/Qt/qt_git/qtbase -B . -DQT_BUILD_MINIMAL_STATIC_TESTS=ON
      cmake --build . -j12 --target tst_qmetatype

      ./tests/auto/corelib/kernel/qmetatype/tst_qmetatype saveAndLoadBuiltin:QCborValue

       

      Did some debugging and found out that saveAndLoadBuiltin:QCborValue fails because -no-feature-cborstreamwriter flag. I suggest to add special handling for this flag in this specific test case. I havent checked other cases yet, but those should be similar failures that needs to be handled case-by-case.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            jarihelaakoski Jari Helaakoski
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes