* tests/tools.m4 (syntax.sh): Exit 1 if you managed to kill the

child, since it means `/bin/sh -n' went loopy.
This commit is contained in:
Akim Demaille 2000-02-21 09:18:01 +00:00
parent c34897ff86
commit 7690cdf6d1
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2000-02-21 Akim Demaille <akim@epita.fr>
* tests/tools.m4 (syntax.sh): Exit 1 if you managed to kill the
child, since it means `/bin/sh -n' went loopy.
2000-02-18 Akim Demaille <akim@epita.fr>
Some `diff' refuse to diff with /dev/null, such as Tru64's.

View File

@ -48,7 +48,7 @@ AT_DATA(syntax.sh,
[[set -e
(/bin/sh -n endless.sh) &
cpid=$!
sleep 2 && kill $cpid >/dev/null 2>&1
sleep 2 && kill $cpid >/dev/null 2>&1 || exit 1
]])
if /bin/sh ./syntax.sh; then