From e1bb6139fbc341dcdc5879ed37739d76039ad75c Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 29 Oct 2007 07:47:21 +0100 Subject: Avoid test failure in non-srcdir build vs. the git tree. * tests/check.mk (vc_exe_in_TESTS): Run this test only in a srcdir build directory. Reported by Andreas Schwab. --- tests/check.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/check.mk') diff --git a/tests/check.mk b/tests/check.mk index 39b094dc1..4c299e653 100644 --- a/tests/check.mk +++ b/tests/check.mk @@ -19,7 +19,7 @@ # one that does not end in '\'. _v = TESTS vc_exe_in_TESTS: Makefile - @if test -d $(top_srcdir)/.git; then \ + @if test -d $(top_srcdir)/.git && test $(srcdir) = .; then \ sed -n '/^$(_v) = \\$$/,/[^\]$$/p' $(srcdir)/Makefile.am \ | sed 's/^ *//;/^\$$.*/d;/^$(_v) =/d' \ | tr -s '\012\\' ' ' | fmt -1 | sort -u > t1 && \ -- cgit v1.2.3-54-g00ecf