From 7690cdf6d16658d0ead5a209d6ac4b5212ceba58 Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Mon, 21 Feb 2000 09:18:01 +0000 Subject: [PATCH] * tests/tools.m4 (syntax.sh): Exit 1 if you managed to kill the child, since it means `/bin/sh -n' went loopy. --- ChangeLog | 5 +++++ tests/tools.m4 | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index dbb9fa64..439e45fa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2000-02-21 Akim Demaille + + * 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 Some `diff' refuse to diff with /dev/null, such as Tru64's. diff --git a/tests/tools.m4 b/tests/tools.m4 index c19c890f..59800a37 100644 --- a/tests/tools.m4 +++ b/tests/tools.m4 @@ -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