Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-38029

my_tzinfo test fails with musl-libc

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 11.4.8
    • 11.4.10, 11.8.6, 12.2.2
    • Tests
    • None
    • Linux with musl-libc
    • Not for Release Notes

    Description

      Executing the my_tzinfo testsuite in a system that is using musl-libc instead of glibc will fail:

      root@qemux86-64:/usr/lib/mariadb/ptest# ./unittest/mysys/my_tzinfo-t
      1..38
      ok 1 # skip no test for default timezone name UTC
      ok 2 - GMT offset is whole number of minutes 0
      ok 3 - UTC: Offset for timestamp 1690000000 is 0/0
      ok 4 - tz abbreviation UTC
      ok 5 - GMT offset is whole number of minutes 0
      ok 6 - UTC: Offset for timestamp 1700000000 is 0/0
      ok 7 - tz abbreviation UTC
      ok 8 - GMT offset is whole number of minutes 0
      ok 9 - UTC: Offset for timestamp 1762356793 is 0/0
      ok 10 - tz abbreviation UTC
      ok 11 - PST8PDT: timezone_name = PDT
      ok 12 - PST8PDT: Summer GMT offset -25200
      ok 13 - PST8PDT: Offset for timestamp 1690000000 is -25200/-25200
      ok 14 - PST8PDT: Summer time abbreviation PDT
      not ok 15 - PST8PDT: Winter GMT offset -25200
      ok 16 - PST8PDT: Offset for timestamp 1700000000 is -25200/-25200
      not ok 17 - PST8PDT: Winter time abbreviation PDT
      ok 18 - GMT: timezone_name = GMT
      ok 19 - GMT: Summer GMT offset 0
      ok 20 - GMT: Offset for timestamp 1690000000 is 0/0
      ok 21 - GMT: Summer time abbreviation GMT
      ok 22 - GMT: Winter GMT offset 0
      ok 23 - GMT: Offset for timestamp 1700000000 is 0/0
      ok 24 - GMT: Winter time abbreviation GMT
      ok 25 - GST-1GDT: timezone_name = GDT
      ok 26 - GST-1GDT: Summer GMT offset 7200
      ok 27 - GST-1GDT: Offset for timestamp 1690000000 is 7200/7200
      ok 28 - GST-1GDT: Summer time abbreviation GDT
      not ok 29 - GST-1GDT: Winter GMT offset 7200
      ok 30 - GST-1GDT: Offset for timestamp 1700000000 is 7200/7200
      not ok 31 - GST-1GDT: Winter time abbreviation GDT
      ok 32 - IST-5:30: timezone_name = IST
      ok 33 - IST-5:30: Summer GMT offset 19800
      ok 34 - IST-5:30: Offset for timestamp 1690000000 is 19800/19800
      ok 35 - IST-5:30: Summer time abbreviation IST
      ok 36 - IST-5:30: Winter GMT offset 19800
      ok 37 - IST-5:30: Offset for timestamp 1700000000 is 19800/19800
      ok 38 - IST-5:30: Winter time abbreviation IST

      1. Failed 4 tests!

      I asked the musl developers about this, and they claim that glibc is handling these posix timezones incorrectly. If I prefix the posix timezones in the test source with a colon ":", then these tests succeed, but some others start to fail.

      Attachments

        Issue Links

          Activity

            People

              danblack Daniel Black
              skandigraun Gyorgy Sarvari
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.