diff options
| author | dana <dana@dana.is> | 2026-05-30 22:14:52 -0500 |
|---|---|---|
| committer | dana <dana@dana.is> | 2026-06-01 17:41:32 -0500 |
| commit | 08f6f87e8c4c5a5588081cbb3b5cd4fe8c6b629a (patch) | |
| tree | ac00e89a0db3008be329ae5760b1af6e1a521981 /Test | |
| parent | unposted: _imagemagick: support .heic extension (diff) | |
| download | zsh-08f6f87e8c4c5a5588081cbb3b5cd4fe8c6b629a.tar zsh-08f6f87e8c4c5a5588081cbb3b5cd4fe8c6b629a.tar.gz zsh-08f6f87e8c4c5a5588081cbb3b5cd4fe8c6b629a.tar.bz2 zsh-08f6f87e8c4c5a5588081cbb3b5cd4fe8c6b629a.tar.lz zsh-08f6f87e8c4c5a5588081cbb3b5cd4fe8c6b629a.tar.xz zsh-08f6f87e8c4c5a5588081cbb3b5cd4fe8c6b629a.tar.zst zsh-08f6f87e8c4c5a5588081cbb3b5cd4fe8c6b629a.zip | |
54645: tests: fix some failures with alpine/busybox/musl
Diffstat (limited to 'Test')
| -rw-r--r-- | Test/A01grammar.ztst | 6 | ||||
| -rw-r--r-- | Test/D03procsubst.ztst | 9 | ||||
| -rw-r--r-- | Test/V09datetime.ztst | 4 |
3 files changed, 8 insertions, 11 deletions
diff --git a/Test/A01grammar.ztst b/Test/A01grammar.ztst index a65dc57f1..eea6ede2b 100644 --- a/Test/A01grammar.ztst +++ b/Test/A01grammar.ztst @@ -128,11 +128,11 @@ 0:`exec' with -l option >-zsh - (exec -a /bin/SPLATTER /bin/sh -c 'echo $0') + (exec -a /bin/SPLATTER $ZTST_testdir/../Src/zsh -fc 'echo $0') 0:`exec' with -a option >/bin/SPLATTER - (exec -a/bin/SPLOOSH /bin/sh -c 'echo $0') + (exec -a/bin/SPLOOSH $ZTST_testdir/../Src/zsh -fc 'echo $0') 0:`exec' with -a option, no space >/bin/SPLOOSH @@ -144,7 +144,7 @@ ( opts=(-a /bin/WHOOOSH) - exec $opts /bin/sh -c 'echo $0' + exec $opts $ZTST_testdir/../Src/zsh -fc 'echo $0' ) 0:`exec' with -a option from expansion >/bin/WHOOOSH diff --git a/Test/D03procsubst.ztst b/Test/D03procsubst.ztst index d68db35fa..d7f57afdc 100644 --- a/Test/D03procsubst.ztst +++ b/Test/D03procsubst.ztst @@ -25,12 +25,9 @@ 0:>(...) substitution >SEcond ViErtE - diff =(cat FILE1) =(cat FILE2) -1:=(...) substitution ->1c1 ->< First Second Third Fourth ->--- ->> Erste Zweite Dritte Vierte + paste =(cut -f1 FILE1) =(cut -f3 FILE2) +0:=(...) substitution +>First Dritte copycat <(print First) <(print Zweite) 0:FDs remain open for external commands called from functions diff --git a/Test/V09datetime.ztst b/Test/V09datetime.ztst index 0eae31687..cbf6967b0 100644 --- 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), '@' (BSDs), '' (musl), or an error (Cygwin). + [[ $(strftime '%@' 0 2> /dev/null) == ((%|)@|) || $? != 0 ]] 0:bad format specifier # This test may fail at 23:59:59.xxx on New Year's Eve :/ |
