]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* tests/tools.m4 (syntax.sh): The logic of the previous patch was
authorAkim Demaille <akim@epita.fr>
Mon, 21 Feb 2000 12:57:47 +0000 (12:57 +0000)
committerAkim Demaille <akim@epita.fr>
Mon, 21 Feb 2000 12:57:47 +0000 (12:57 +0000)
twisted.  Fix it so that it performs what claims the entry below.
From Nicolas Joly.

ChangeLog
tests/tools.m4

index 439e45faf715e527ccd330d8d3a07dc4c514c67a..7d89763989a1639599d7356cc922f537b5e21f57 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
 
        * tests/tools.m4 (syntax.sh): Exit 1 if you managed to kill the
index 59800a3781362d97b69dfe349ab8ab80970a0786..87c8c194386e648887b6c52b8234bb96aef0fd12 100644 (file)
@@ -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