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

tst_qdatetime fails because of wrong locale on Win 10

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P0: Blocker P0: Blocker
    • None
    • 5.6
    • Core: Date/Time
    • New Win 10 VM templates

      ********* Start testing of tst_QDateTime *********
      Config: Using QtTest library 5.6.0, Qt 5.6.0 (x86_64-little_endian-llp64 shared (dynamic) release build; by MSVC 2015)
      QDEBUG : tst_QDateTime::initTestCase() Current local time detected to be ahead of UTC but isn't the Central European timezone
      PASS   : tst_QDateTime::initTestCase()
      FAIL!  : tst_QDateTime::toString_textDate(localtime) Compared values are not the same
         Actual   (result)  : "ke tammi 2 01:02:03 2013"
         Expected (expected): "Wed Jan 2 01:02:03 2013"
      tst_qdatetime.cpp(776) : failure location
      FAIL!  : tst_QDateTime::toString_textDate(utc) Compared values are not the same
         Actual   (result)  : "ke tammi 2 01:02:03 2013 GMT"
         Expected (expected): "Wed Jan 2 01:02:03 2013 GMT"
      tst_qdatetime.cpp(776) : failure location
      FAIL!  : tst_QDateTime::toString_textDate(offset+) Compared values are not the same
         Actual   (result)  : "ke tammi 2 01:02:03 2013 GMT+1000"
         Expected (expected): "Wed Jan 2 01:02:03 2013 GMT+1000"
      tst_qdatetime.cpp(776) : failure location
      FAIL!  : tst_QDateTime::toString_textDate(offset-) Compared values are not the same
         Actual   (result)  : "ke tammi 2 01:02:03 2013 GMT-1000"
         Expected (expected): "Wed Jan 2 01:02:03 2013 GMT-1000"
      tst_qdatetime.cpp(776) : failure location
      PASS   : tst_QDateTime::toString_textDate(invalid)
      PASS   : tst_QDateTime::cleanupTestCase()
      Totals: 3 passed, 4 failed, 0 skipped, 0 blacklisted
      ********* Finished testing of tst_QDateTime *********
      

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

            hehalmet Heikki Halmet
            frederik Frederik Gladhorn
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes