mirror of
git://git.sv.gnu.org/autoconf
synced 2025-02-17 14:01:27 +08:00
* tests/tools.m4 (syntax.sh): The logic of the previous patch was
twisted. Fix it so that it performs what claims the entry below. From Nicolas Joly.
This commit is contained in:
parent
7690cdf6d1
commit
54c26866f9
@ -1,3 +1,9 @@
|
|||||||
|
2000-02-21 Akim Demaille <akim@epita.fr>
|
||||||
|
|
||||||
|
* tests/tools.m4 (syntax.sh): The logic of the previous patch was
|
||||||
|
twisted. Fix it so that it performs what claims the entry below.
|
||||||
|
From Nicolas Joly.
|
||||||
|
|
||||||
2000-02-21 Akim Demaille <akim@epita.fr>
|
2000-02-21 Akim Demaille <akim@epita.fr>
|
||||||
|
|
||||||
* tests/tools.m4 (syntax.sh): Exit 1 if you managed to kill the
|
* tests/tools.m4 (syntax.sh): Exit 1 if you managed to kill the
|
||||||
|
@ -45,10 +45,13 @@ done
|
|||||||
|
|
||||||
# A script in charge of testing `/bin/sh -n'.
|
# A script in charge of testing `/bin/sh -n'.
|
||||||
AT_DATA(syntax.sh,
|
AT_DATA(syntax.sh,
|
||||||
[[set -e
|
[[(/bin/sh -n endless.sh) &
|
||||||
(/bin/sh -n endless.sh) &
|
sleep 2
|
||||||
cpid=$!
|
if kill $! >/dev/null 2>&1; then
|
||||||
sleep 2 && kill $cpid >/dev/null 2>&1 || exit 1
|
# We managed to kill the child, which means that we probably
|
||||||
|
# can't trust `/bin/sh -n', hence the test failed.
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
]])
|
]])
|
||||||
|
|
||||||
if /bin/sh ./syntax.sh; then
|
if /bin/sh ./syntax.sh; then
|
||||||
|
Loading…
Reference in New Issue
Block a user