summaryrefslogtreecommitdiff
path: root/tests/check.mk
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2011-02-10 10:01:23 +0100
committerJim Meyering <meyering@redhat.com>2011-02-10 10:01:23 +0100
commit15571e0c8f4be1170184388f9acd8259ba75b22f (patch)
tree01967952c5121947aff93c4344b7fe9f48ca2137 /tests/check.mk
parentc91b2a3c3b3e6ed88312ce104984f8c3778c9dea (diff)
downloadcoreutils-15571e0c8f4be1170184388f9acd8259ba75b22f.tar.xz
tests: fix bug in preceding check.mk change
* tests/check.mk (.built-programs): Run cd'd submake in a subshell so the redirected output ends up in the current directory, not ../src.
Diffstat (limited to 'tests/check.mk')
-rw-r--r--tests/check.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/check.mk b/tests/check.mk
index b80dce8ac..1e3ca8502 100644
--- a/tests/check.mk
+++ b/tests/check.mk
@@ -44,8 +44,8 @@ CLEANFILES =
CLEANFILES += .built-programs
check-am: .built-programs
.built-programs:
- $(AM_V_GEN)cd $(top_builddir)/src \
- && MAKEFLAGS= $(MAKE) -s built_programs.list \
+ $(AM_V_GEN)(cd $(top_builddir)/src \
+ && MAKEFLAGS= $(MAKE) -s built_programs.list) \
> $@-t && mv $@-t $@
# Note that the first lines are statements. They ensure that environment