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

QEventLoop test fails on 32 bits systems built with 64 bits time

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • None
    • 5.15.3, 6.2.4
    • Core: Event loop
    • None
    • i.MX6 + Linux 5.10 + glibc 2.35
    • Linux/Yocto

    Description

      Environment

      • i.MX6 32 bits CPU
      • Yocto Kirkstone (kirkstone-4.0.6)
      • Linux 5.10.109
      • glibc 2.35 (8d125a1f9145ad90c94e438858d6b5b7578686f2)
      • qtbase 5.15.3 or 6.2.4
      • RFS built with "-D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64" flags

      Description

      The following qtbase test failed:

      # ./tst_qeventloop
      ********* Start testing of tst_QEventLoop *********
      Config: Using QtTest library 6.2.4, Qt 6.2.4 (arm-little_endian-ilp32-eabi-hardfloat shared (dynamic) release build; by GCC 11.3.0), poky 4.0.6
      PASS   : tst_QEventLoop::initTestCase()
      FAIL!  : tst_QEventLoop::processEvents() 'eventLoop.processEvents(QEventLoop::WaitForMoreEvents)' returned FALSE. ()
      Loc: [/usr/src/debug/qtbase/6.2.4-r0/git/tests/auto/corelib/kernel/qeventloop/tst_qeventloop.cpp(218)]
      

      The test fails with date before and after 2038:

      Flags Date tst_qeventloop result
      None Before 2038 Pass
      None After 2038 N/A (system crashes)
      -D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64 Before 2038 Fail
      -D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64 After 2038 Fail

      Attachments

        Issue Links

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

          Activity

            People

              blemou Benjamin Lemouzy
              blemou Benjamin Lemouzy
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes