• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

systemd / systemd / 28630269468
73%

Build:
DEFAULT BRANCH: main
Ran 03 Jul 2026 03:36AM UTC
Jobs 1
Files 2159
Run time 4min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

02 Jul 2026 10:23PM UTC coverage: 72.618% (-0.06%) from 72.68%
28630269468

push

github

yuwata
test: ignore fails when the formatted timezone differs from the current one

When formatting a timestamp the C API takes into account historical data
from tzdata, so it returns a date strings with a historically-correct
timezone abbreviation. However, tzname[] doesn't do this and it returns
the most recent abbreviation for the given zone.

For example, according to tzdata America/Cancun switched from EST/EDT to
CST/CDT on 1998-08-02:

Zone America/Cancun     -5:47:04 -      LMT     1922 Jan  1  6:00u
                        -6:00   -       CST     1981 Dec 26  2:00
                        -5:00   -       EST     1983 Jan  4  0:00
                        -6:00   Mexico  C%sT    1997 Oct 26  2:00
                        -5:00   Mexico  E%sT    1998 Aug  2  2:00
                        -6:00   Mexico  C%sT    2015 Feb  1  2:00
                        -5:00   -       EST

So, formatting a timestamp from this time will yield a string with the
EDT timezone:

$ TZ=America/Cancun date -d "@902035565"
Sun Aug  2 01:26:05 EDT 1998

But using tzname[] (or strptime %z) shows the most recent data, where
America/Cancun uses EST (and doesn't use DST anymore, hence
tzname[1]=CDT that glibc remembers from the previous zone epoch):

$ TZ=America/Cancun ./tz
{EST, CDT}

This means that when we parse the formatted timestamp back we don't use
the historical timezone data, so we might end up with a different
offset:

TZ=America/Cancun, tzname[0]=EST, tzname[1]=CDT
@902035565603993 → Sun 1998-08-02 01:26:05 EDT → @902039165000000 → Sun 1998-08-02 01:26:05 CDT
src/test/test-time-util.c:452: Assertion failed: Expected "ignore" to be true
Aborted                    (core dumped) build-local/test-time-util

Instead of adding exceptions for every single timezone that switched
between different offsets in the past, let's address this a bit more
generally and skip the check if the parsed timezone doesn't match any of
the current timezones - this still keeps the check that the time... (continued)

1 of 5 new or added lines in 1 file covered. (20.0%)

9391 existing lines in 86 files now uncovered.

341680 of 470518 relevant lines covered (72.62%)

1343034.26 hits per line

Uncovered Changes

Lines Coverage ∆ File
4
94.01
-0.08% src/test/test-time-util.c

Coverage Regressions

Lines Coverage ∆ File
2229
53.75
-21.81% src/repart/repart.c
1011
51.16
0.96% src/core/load-fragment.c
677
0.0
0.0% src/vmspawn/vmspawn.c
589
69.97
0.0% src/core/exec-invoke.c
549
58.75
-1.04% src/core/main.c
513
78.39
0.03% src/shared/tpm2-util.c
425
48.87
0.02% src/home/homectl.c
373
46.89
4.06% src/basic/terminal-util.c
323
63.02
0.1% src/run/run.c
313
77.44
0.09% src/libsystemd/sd-bus/sd-bus.c
257
82.87
1.56% src/core/manager.c
250
67.11
0.25% src/shared/crypto-util.c
168
78.63
-0.2% src/firstboot/firstboot.c
159
82.67
-0.02% src/resolve/resolved-dns-dnssec.c
132
71.69
-0.17% src/measure/measure-tool.c
132
69.74
-0.01% src/tmpfiles/tmpfiles.c
129
74.88
0.45% src/test/test-tpm2.c
126
69.48
-0.27% src/cryptenroll/cryptenroll.c
112
73.07
0.02% src/nspawn/nspawn.c
90
45.45
0.04% src/cryptsetup/cryptsetup.c
89
83.24
0.0% src/basic/socket-util.c
70
67.37
37.8% src/bootctl/bootctl-link.c
65
74.75
-0.11% src/shared/creds-util.c
55
93.42
0.3% src/basic/compress.c
52
77.43
16.83% src/import/pull-common.c
35
56.0
-0.07% src/cryptsetup/cryptsetup-tokens/cryptsetup-token-systemd-tpm2.c
31
74.35
-0.28% src/bootctl/bootctl-install.c
31
73.04
0.37% src/cryptenroll/cryptenroll-tpm2.c
31
94.01
-0.08% src/test/test-time-util.c
28
86.93
0.9% src/test/test-terminal-util.c
25
88.06
2.02% src/basic/user-util.c
25
48.01
-8.28% src/login/logind-inhibit.c
25
93.32
-1.05% src/test/test-compress.c
23
59.24
0.79% src/shared/cryptsetup-tpm2.c
21
79.59
-0.68% src/pcrextend/pcrextend.c
19
91.45
0.18% src/libsystemd/sd-path/path-lookup.c
17
0.0
0.0% src/cryptenroll/cryptenroll-interactive.c
16
71.36
0.75% src/core/service.c
16
96.32
-0.1% src/test/test-user-util.c
15
55.48
-1.12% src/shared/user-record.c
14
67.44
0.0% src/shared/reboot-util.c
13
75.82
0.32% src/bootctl/bootctl-unlink.c
10
87.85
-1.0% src/shared/userdb.c
8
84.31
0.0% src/cryptsetup/cryptsetup-tokens/luks2-tpm2.c
7
82.85
-1.21% src/shared/bus-polkit.c
7
69.21
-1.98% src/udev/udev-builtin-blkid.c
6
81.92
-1.11% src/core/timer.c
6
76.9
-1.75% src/nss-resolve/nss-resolve.c
6
87.5
-0.5% src/shared/crypto-util.h
5
76.13
-0.78% src/core/transaction.c
5
80.59
-0.61% src/resolve/resolved-varlink.c
5
96.88
0.27% src/test/test-socket-util.c
5
99.18
0.0% src/test/test-unit-name.c
4
67.26
-2.38% src/core/dbus-job.c
4
91.9
-0.14% src/libsystemd/sd-journal/journal-file.c
3
90.1
-0.49% src/libsystemd/sd-device/device-enumerator.c
2
77.01
-0.16% src/journal/journald-manager.c
2
78.71
-0.76% src/journal-remote/journal-upload-journal.c
2
80.16
-0.41% src/network/networkd-dhcp-server.c
2
50.0
-25.0% src/shared/find-esp.h
2
77.47
-0.17% src/shared/logs-show.c
2
61.01
-0.19% src/shared/pkcs11-util.c
2
85.92
0.9% src/udev/udev-manager.c
1
89.01
-0.52% src/analyze/analyze-verify-util.c
1
97.22
0.0% src/basic/dlfcn-util.c
1
82.33
-0.1% src/basic/process-util.c
1
79.88
1.75% src/core/job.c
1
65.62
-0.05% src/core/socket.c
1
81.13
-0.31% src/journal/journalctl-show.c
1
96.82
-0.45% src/libsystemd-network/dhcp-relay-downstream.c
1
86.36
0.0% src/libsystemd/sd-journal/sd-journal.c
1
85.71
0.0% src/libsystemd/sd-path/path-lookup.h
1
81.51
-0.05% src/libsystemd/sd-varlink/sd-varlink.c
1
73.22
-0.09% src/network/networkd-dhcp4.c
1
84.22
-0.12% src/network/networkd-dhcp-prefix-delegation.c
1
87.39
-0.12% src/network/networkd-nexthop.c
1
74.55
18.53% src/oom/oomd-manager.c
1
79.07
0.06% src/resolve/resolved-dns-transaction.c
1
81.46
-0.23% src/resolve/resolved-hook.c
1
67.6
-0.35% src/resolve/resolved-llmnr.c
1
44.72
-0.27% src/resolve/resolved-mdns.c
1
84.21
-5.26% src/shared/dissect-image.h
1
84.07
-0.44% src/shared/journal-file-util.c
1
77.39
-0.43% src/shared/reread-partition-table.c
1
65.36
-0.65% src/stdio-bridge/stdio-bridge.c
1
66.85
-0.54% src/udev/udev-worker.c
Jobs
ID Job ID Ran Files Coverage
1 28630269468.1 03 Jul 2026 03:36AM UTC 2159
72.62
GitHub Action Run
Source Files on build 28630269468
  • Tree
  • List 2159
  • Changed 146
  • Source Changed 67
  • Coverage Changed 129
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #28630269468
  • 7273d383 on github
  • Prev Build on main (#28557109148)
  • Next Build on main (#28689257516)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc