zsh-5.9-musl-V09datetime-test-fix.patch 641 B

12345678910111213141516
  1. # On musl strftime '%@' returns new line, so we include to check for that too
  2. # Closes: https://bugs.gentoo.org/833981
  3. --- a/Test/V09datetime.ztst
  4. +++ b/Test/V09datetime.ztst
  5. @@ -79,8 +79,8 @@
  6. >1973^@03^@03
  7. # We assume '%@' is not a valid format on any OSs.
  8. -# The result can be '%@' (Linux), '@' (BSDs) or an error (Cygwin).
  9. - [[ $(strftime '%@' 0 2> /dev/null) == (%|)@ || $? != 0 ]]
  10. +# The result can be '%@' (Linux), '\n' (Linux with musl libc) '@', (BSDs) or an error (Cygwin).
  11. + [[ $(strftime '%@' 0 2> /dev/null) == (%|)@ || $? != 0 || $'\n' ]]
  12. 0:bad format specifier
  13. # This test may fail at 23:59:59.xxx on New Year's Eve :/