]> git.ipfire.org Git - thirdparty/systemd.git/commit
test: do not use nanoseconds width specifier in date command
authorNick Rosbrook <enr0n@ubuntu.com>
Mon, 13 Apr 2026 20:06:23 +0000 (16:06 -0400)
committerLuca Boccassi <luca.boccassi@gmail.com>
Tue, 14 Apr 2026 13:54:32 +0000 (14:54 +0100)
commitda18a5cfd659daff94b44894a1713f77d64b3fcb
tree4d76c555c1449b2560e99a6c463a9980d4b3b51d
parent78ab4d1f7deffd1124a0625fd3a2c815e9e39103
test: do not use nanoseconds width specifier in date command

Using the format specifier +%s%6N with GNU date is honored, and only
prints 6 digits of the nanoseconds portion of the seconds since epoch.
The uutils implementation of date does not honor this, and always prints
all 9 digits. This is a known bug[1], but can be worked around by
adapting this test to use nanoseconds instead of microseconds.

[1] https://github.com/uutils/coreutils/issues/11658
test/units/TEST-74-AUX-UTILS.busctl.sh