From: Jim Meyering Date: Mon, 29 Oct 2007 06:47:21 +0000 (+0100) Subject: Avoid test failure in non-srcdir build vs. the git tree. X-Git-Tag: v6.9.89~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e1bb6139fbc341dcdc5879ed37739d76039ad75c;p=thirdparty%2Fcoreutils.git 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. --- diff --git a/ChangeLog b/ChangeLog index b091bb42d5..fe4bfab26e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-10-29 Jim Meyering + + 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. + 2007-10-28 Jim Meyering Define ENOTSUP, not ENOSYS. Needed on OpenBSD 3.9. diff --git a/tests/check.mk b/tests/check.mk index 39b094dc18..4c299e653c 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 && \