]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Fix testsuite to not trigger Solaris sh for bug.
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sun, 4 Jul 2010 18:22:29 +0000 (20:22 +0200)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sun, 4 Jul 2010 18:22:29 +0000 (20:22 +0200)
* tests/torture.at (Torturing config.status)
(Substitute a 2000-byte string)
(Substitute and define special characters)
(Substitute a newline): Quote first argument in for list so
that it does not look like an assignment.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
ChangeLog
tests/torture.at

index ac17d8cdba0ba24e52d4f04d27542c339750ad2f..894059ef9c72ae2ae74b76b3f0123a06110761b1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2010-07-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       Fix testsuite to not trigger Solaris sh for bug.
+       * tests/torture.at (Torturing config.status)
+       (Substitute a 2000-byte string)
+       (Substitute and define special characters)
+       (Substitute a newline): Quote first argument in for list so
+       that it does not look like an assignment.
+
 2010-07-02  Eric Blake  <eblake@redhat.com>
 
        Post-release administrivia.
index 27405b71bda6263f686a8e8b937cea20a94ae6de..5f138740ab9661148f8b2646d1eaad1ce026c905 100644 (file)
@@ -684,8 +684,9 @@ AC_OUTPUT
 
 AT_CHECK_AUTOCONF
 AT_CHECK_AUTOHEADER
-# Check both awk and the result of AC_PROG_AWK
-for awk_arg in FOO= AWK=awk; do
+# Check both awk and the result of AC_PROG_AWK.
+# Quote the first word in the for list for Solaris sh.
+for awk_arg in "FOO=" AWK=awk; do
   AT_CHECK_CONFIGURE([$awk_arg])
 
   # Checking that AC_DEFINE worked properly.
@@ -800,7 +801,8 @@ EOF
 
 AT_CHECK_AUTOCONF
 # Check both awk and the result of AC_PROG_AWK
-for awk_arg in Foo= AWK=awk; do
+# Quote the first word in the for list for Solaris sh.
+for awk_arg in "Foo=" AWK=awk; do
   AT_CHECK_CONFIGURE([$awk_arg])
   AT_CHECK([cat Foo], 0, m4_for([n], 1, 100,, ....................)
 )
@@ -910,7 +912,8 @@ AC_CONFIG_FILES([Foo Zardoz])]])
 AT_CHECK_AUTOCONF
 AT_CHECK_AUTOHEADER
 # Check both awk and the result of AC_PROG_AWK
-for awk_arg in FOO= AWK=awk; do
+# Quote the first word in the for list for Solaris sh.
+for awk_arg in "FOO=" AWK=awk; do
   AT_CHECK_CONFIGURE([$awk_arg])
   AT_CHECK([cat Foo], 0, [[X*'[]+ ", & &`\($foo \& \\& \\\& \\\\& \ \\ \\\ !
 @foo@ @baz@@notsubsted@bla stray @ and more@@bla
@@ -975,7 +978,8 @@ x' >expout
 
 AT_CHECK_AUTOCONF
 # Check both awk and the result of AC_PROG_AWK
-for awk_arg in FOO= AWK=awk; do
+# Quote the first word in the for list for Solaris sh.
+for awk_arg in "FOO=" AWK=awk; do
   AT_CHECK_CONFIGURE([$awk_arg])
   AT_CHECK([cat Foo], 0, [expout])
 done