summaryrefslogtreecommitdiff
path: root/system/zsh/datetime-test-fix.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2025-06-26 23:04:25 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2025-07-13 00:14:14 -0500
commit080e2bfdef0a9d6844f6afd9013421e9d65a586c (patch)
tree1bf63ba21df947e065bca41ced526c83e838a4bb /system/zsh/datetime-test-fix.patch
parent9384ad7759d2a65b1c87cebacf11c5494a2721a8 (diff)
downloadpackages-080e2bfdef0a9d6844f6afd9013421e9d65a586c.tar.gz
packages-080e2bfdef0a9d6844f6afd9013421e9d65a586c.tar.bz2
packages-080e2bfdef0a9d6844f6afd9013421e9d65a586c.tar.xz
packages-080e2bfdef0a9d6844f6afd9013421e9d65a586c.zip
system/zsh: Update to 5.9
Also, fix tests properly. Required a lot of research.
Diffstat (limited to 'system/zsh/datetime-test-fix.patch')
-rw-r--r--system/zsh/datetime-test-fix.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/system/zsh/datetime-test-fix.patch b/system/zsh/datetime-test-fix.patch
new file mode 100644
index 000000000..3703fb417
--- /dev/null
+++ b/system/zsh/datetime-test-fix.patch
@@ -0,0 +1,14 @@
+# Ref: https://bugs.gentoo.org/833981
+--- a/Test/V09datetime.ztst
++++ b/Test/V09datetime.ztst
+@@ -79,8 +79,8 @@
+ >1973^@03^@03
+
+ # We assume '%@' is not a valid format on any OSs.
+-# The result can be '%@' (Linux), '@' (BSDs) or an error (Cygwin).
+- [[ $(strftime '%@' 0 2> /dev/null) == (%|)@ || $? != 0 ]]
++# The result can be '%@' (Linux), '\n' (Linux with musl libc) '@', (BSDs) or an error (Cygwin).
++ [[ $(strftime '%@' 0 2> /dev/null) == (%|)@ || $? != 0 || $'\n' ]]
+ 0:bad format specifier
+
+ # This test may fail at 23:59:59.xxx on New Year's Eve :/