1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-30 02:52:12 +01:00

43466: Make path(5) test more generic.

Only test non-zero status as OS error codes and messages vary.
This commit is contained in:
Peter Stephenson 2018-09-14 09:19:19 +01:00
parent 24bb465566
commit 1056827194
2 changed files with 16 additions and 6 deletions

View file

@ -1,3 +1,8 @@
2018-09-14 Peter Stephenson <p.stephenson@samsung.com>
* 43466: Test/A05execution.ztst: path(5) test is too specific as
OS codes and messages may vary.
2018-09-12 Daniel Shahaf <d.s@daniel.shahaf.name>
* unposted: Completion/Unix/Command/_subversion: _svn: Complete

View file

@ -52,12 +52,17 @@
0:path (4)
*>foo */command.tmp/tstcmd-arg
path=($shpath $echopath ${ZTST_testdir}/command.tmp/)
tstcmd-interp-too-long 2>&1; echo "status $?"
path=($storepath)
0:path (5)
*>*tstcmd-interp-too-long: bad interpreter: x*xn: no such file or directory
>status 127
# Just check this exits with non-zero status,
# as output and status code can differ.
(
path=($shpath $echopath ${ZTST_testdir}/command.tmp/)
if tstcmd-interp-too-long >/dev/null 2>&1; then
exit 0
else
exit 1
fi
)
1:path (5)
functst() { print $# arguments:; print -l $*; }
functst "Eines Morgens" "als Gregor Samsa"