From: Ralf Wildenhues Date: Sun, 4 Jul 2010 18:22:29 +0000 (+0200) Subject: Fix testsuite to not trigger Solaris sh for bug. X-Git-Tag: v2.67~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b33f7cab06c31a1e89602c69588e8bf37fe23ac3;p=thirdparty%2Fautoconf.git 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. Signed-off-by: Ralf Wildenhues --- diff --git a/ChangeLog b/ChangeLog index ac17d8cd..894059ef 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2010-07-04 Ralf Wildenhues + + 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 Post-release administrivia. diff --git a/tests/torture.at b/tests/torture.at index 27405b71..5f138740 100644 --- a/tests/torture.at +++ b/tests/torture.at @@ -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