From 8fab8ab6d2d08142ece5fe97a2d0a3768114352f Mon Sep 17 00:00:00 2001 From: Ralf Wildenhues Date: Sat, 8 Dec 2007 12:00:02 +0100 Subject: [PATCH] * tests/torture.at (srcdir): Fix quoting. --- ChangeLog | 2 ++ tests/torture.at | 7 +++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index e674318a..1f157b70 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2007-12-08 Ralf Wildenhues + * tests/torture.at (srcdir): Fix quoting. + Do not pass top_srcdir to configure scripts in testsuite. * tests/autotest.at (srcdir propagation): Copy install-sh to source tree. diff --git a/tests/torture.at b/tests/torture.at index 11c619d7..6a7b962c 100644 --- a/tests/torture.at +++ b/tests/torture.at @@ -972,10 +972,13 @@ AT_DATA([configure.ac], AC_CONFIG_FILES([foo at-dir/bar]) +# Use quotes in the INIT-COMMANDS to accommodate a value of $srcdir +# containing e.g., spaces or shell meta-characters. +# Use *single* quotes because the context is an unquoted here-doc. AC_CONFIG_COMMANDS([report], -[test -f $srcdir/configure.ac || +[test -f "$srcdir/configure.ac" || AC_MSG_ERROR([cannot find $srcdir/configure.ac])], - [srcdir=$srcdir]) + [srcdir='$srcdir']) AC_OUTPUT rm -f -r foo at-dir/bar -- 2.47.2