From: Ralf Wildenhues Date: Tue, 4 Dec 2007 21:48:42 +0000 (+0100) Subject: Quote $abs_top_srcdir in tests. X-Git-Tag: v2.62~97 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be000532a980773b5f8bb5bed5bcc7fea370b0f7;p=thirdparty%2Fautoconf.git Quote $abs_top_srcdir in tests. * tests/local.at (AT_CHECK_PERL_SYNTAX): Likewise. * tests/tools.at (Syntax of the shell scripts): Likewise. --- diff --git a/ChangeLog b/ChangeLog index 0b05ce31..2060138e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2007-12-08 Ralf Wildenhues + Quote $abs_top_srcdir in tests. + * tests/local.at (AT_CHECK_PERL_SYNTAX): Likewise. + * tests/tools.at (Syntax of the shell scripts): Likewise. + * tests/m4sh.at (LINENO): Quote $0. Fix testsuite program wrapper for whitespace in `pwd`. diff --git a/tests/local.at b/tests/local.at index b17fff3b..75823e24 100644 --- a/tests/local.at +++ b/tests/local.at @@ -52,7 +52,7 @@ m4_define([AT_CHECK_SHELL_SYNTAX], [AT_CHECK([/bin/sh -n $1])])]) m4_define([AT_CHECK_PERL_SYNTAX], -[AT_CHECK([autom4te_perllibdir=$abs_top_srcdir/lib $PERL -c $abs_top_builddir/bin/$1], +[AT_CHECK([autom4te_perllibdir=$abs_top_srcdir/lib $PERL -c "$abs_top_builddir"/bin/$1], 0, [], [ignore])]) ## ------------------ ## diff --git a/tests/tools.at b/tests/tools.at index 199c15e4..8c0794f4 100644 --- a/tests/tools.at +++ b/tests/tools.at @@ -50,13 +50,13 @@ AT_CHECK([test "$ac_cv_sh_n_works" = yes || exit 77]) # Specify the absolute name of the tool, as some shells don't honor PATH when # running `sh PROG'. -AT_CHECK_SHELL_SYNTAX([$abs_top_builddir/bin/autoconf]) -AT_CHECK_SHELL_SYNTAX([$abs_top_builddir/tests/autoconf]) -AT_CHECK_SHELL_SYNTAX([$abs_top_builddir/tests/testsuite]) +AT_CHECK_SHELL_SYNTAX(["$abs_top_builddir/bin/autoconf"]) +AT_CHECK_SHELL_SYNTAX(["$abs_top_builddir/tests/autoconf"]) +AT_CHECK_SHELL_SYNTAX(["$abs_top_builddir/tests/testsuite"]) # These are not built, they are in the src tree. -AT_CHECK_SHELL_SYNTAX([$abs_top_srcdir/build-aux/install-sh]) -AT_CHECK_SHELL_SYNTAX([$abs_top_srcdir/build-aux/missing]) +AT_CHECK_SHELL_SYNTAX(["$abs_top_srcdir/build-aux/install-sh"]) +AT_CHECK_SHELL_SYNTAX(["$abs_top_srcdir/build-aux/missing"]) AT_CLEANUP