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

tst_QDateTime::timeZones fails with glibc 2.31 on Clear Linux

    XMLWordPrintable

Details

    • Linux/X11
    • 38a72af4fd311219779f89b2b78cd56d879f61db (qt/qtbase/dev) 976ee881495ba176da5b0468aaf1162bbdc5c3f5 (qt/qtbase/6.0) 9f74724d842b3390a1c5c04ac8ea9120b3bbdd8b (qt/tqtc-qtbase/tqtc/lts-5.15)

    Description

      $ ./tst_qdatetime timeZones
      ********* Start testing of tst_QDateTime *********
      Config: Using QtTest library 6.1.0, Qt 6.1.0 (x86_64-little_endian-lp64 shared (dynamic) debug build; by GCC 10.2.1 20210120 releases/gcc-10.2.0-768-ge1f4be24f4), clear-linux-os 34190
      QDEBUG : tst_QDateTime::initTestCase() [4226365.814] (174140 174140)(tst_QDateTime::initTestCase)?[0m:  Current local time detected to be behind UTC and therefore not the Central European timezone
      PASS   : tst_QDateTime::initTestCase()
      FAIL!  : tst_QDateTime::timeZones() Compared values are not the same
         Actual   (beforeDst.time())     : 02:59:59.999
         Expected (QTime(1, 59, 59, 999)): 01:59:59.999
         Loc: [/home/tjmaciei/src/qt/qt6/qtbase/tests/auto/corelib/time/qdatetime/tst_qdatetime.cpp(3722)]
      PASS   : tst_QDateTime::cleanupTestCase()
      Totals: 2 passed, 1 failed, 0 skipped, 0 blacklisted, 3ms
      ********* Finished testing of tst_QDateTime *********
      
          // Test MSecs to local
          // - Test 1 msec before tran = 01:59:59.999
          QDateTime beforeDst = QDateTime::fromMSecsSinceEpoch(stdToDstMSecs - 1, cet);
          QCOMPARE(beforeDst.date(), QDate(2013, 3, 31));
          QCOMPARE(beforeDst.time(), QTime(1, 59, 59, 999));       // <=== failure here
          // - Test at tran = 03:00:00
          QDateTime atDst = QDateTime::fromMSecsSinceEpoch(stdToDstMSecs, cet);
          QCOMPARE(atDst.date(), QDate(2013, 3, 31));
          QCOMPARE(atDst.time(), QTime(3, 0));
      

      System's Europe/Oslo attached.

      Attachments

        Issue Links

          Activity

            People

              Eddy Edward Welbourne
              thiago Thiago Macieira
              Maurice Kalinowski Maurice Kalinowski
              Alex Blasche Alex Blasche
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: