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

[VxWorks] timezone test fails with TZ=Asia/Kolkata

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 6.10.0
    • Core: Date/Time
    • None
    • VxWorks

      If the TZ is not set, then the auto tests fail like this:

      FAIL!  : tst_QTimeZone::systemZone() 'zone.isValid()' returned FALSE. (Invalid system zone setting, tests are doomed on misconfigured system.)
         Loc: [/home/karim/src/vxtimetests/qtimezone/tst_qtimezone.cpp(566)]
      but when it is set to TZ=Asia/Kolkata:

      FAIL!  : tst_QTimeZone::systemZone() Compared values are not the same
         Actual   (date.startOfDay(QTimeZone::LocalTime)): -4714/11/24 00:00:00.000[GMT+5:30]
         Expected (date.startOfDay(zone))                : -4714/11/24 00:00:00.000[GMT+5:30]
         Loc: [/home/karim/src/vxtimetests/qtimezone/tst_qtimezone.cpp(581)]

      Works with TZ=UTC

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

            karimpinter Karim Pinter
            karimpinter Karim Pinter
            Veli-Pekka Heinonen Veli-Pekka Heinonen
            Jarno Lämsä Jarno Lämsä
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes