From 54c26866f91607cea4e4e61f3d766e50dde43fe8 Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Mon, 21 Feb 2000 12:57:47 +0000 Subject: [PATCH] * 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. --- ChangeLog | 6 ++++++ tests/tools.m4 | 11 +++++++---- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 439e45fa..7d897639 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2000-02-21 Akim Demaille + + * 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 * tests/tools.m4 (syntax.sh): Exit 1 if you managed to kill the diff --git a/tests/tools.m4 b/tests/tools.m4 index 59800a37..87c8c194 100644 --- a/tests/tools.m4 +++ b/tests/tools.m4 @@ -45,10 +45,13 @@ done # A script in charge of testing `/bin/sh -n'. AT_DATA(syntax.sh, -[[set -e -(/bin/sh -n endless.sh) & -cpid=$! -sleep 2 && kill $cpid >/dev/null 2>&1 || exit 1 +[[(/bin/sh -n endless.sh) & +sleep 2 +if kill $! >/dev/null 2>&1; then + # 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