From 7eddfb6fbb99ee560d4d0d8a4f73434f5aeaa7f2 Mon Sep 17 00:00:00 2001 From: "Gary V. Vaughan" Date: Thu, 29 Jul 2004 18:13:37 +0000 Subject: [PATCH] * tests/tagtrace.test: Skip this test when running a VPATH build against a read-only source tree (as in distcheck for example), since autoconf wants to write temporary files in $top_srcdir otherwise. --- ChangeLog | 5 +++++ tests/tagtrace.test | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/ChangeLog b/ChangeLog index 93bf5f356..701014fd9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2004-07-29 Gary V. Vaughan + * tests/tagtrace.test: Skip this test when running a VPATH build + against a read-only source tree (as in distcheck for example), + since autoconf wants to write temporary files in $top_srcdir + otherwise. + * Makefile.am ($(top_srcdir)/config/ltmain.sh): Automake assumes, quite rightly for every project except libtool, that there will be an ltmain.sh in the source tree. diff --git a/tests/tagtrace.test b/tests/tagtrace.test index 98d81b79b..f24f77b39 100755 --- a/tests/tagtrace.test +++ b/tests/tagtrace.test @@ -27,7 +27,14 @@ if test -z "$srcdir"; then fi . $srcdir/defs || exit 1 +: ${fnord=$srcdir/../fnord$$} + "$AUTOCONF" --version > /dev/null 2>&1 || func_skip "This test requires GNU Autoconf" +if touch $fnord; then + rm $fnord +else + func_skip "This test requires write access to the source tree" +fi # Abort as soon as something fails. set -e -- 2.47.2