autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 7/10] Quote $abs_top_srcdir in tests.


From: Ralf Wildenhues
Subject: [PATCH 7/10] Quote $abs_top_srcdir in tests.
Date: Tue, 4 Dec 2007 22:48:42 +0100
User-agent: Mutt/1.5.13 (2006-08-11)

* tests/local.at (AT_CHECK_PERL_SYNTAX): Likewise.
* tests/tools.at (Syntax of the shell scripts): Likewise.
---
 tests/local.at |    2 +-
 tests/tools.at |   10 +++++-----
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/tests/local.at b/tests/local.at
index b17fff3..75823e2 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 e06ee82..f64b954 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
 
-- 
1.5.3.6.950.g92b7b





reply via email to

[Prev in Thread] Current Thread [Next in Thread]