Module Name: src
Committed By: sjg
Date: Tue Jul 28 16:26:37 UTC 2020
Modified Files:
src/usr.bin/make/unit-tests: Makefile
Log Message:
Ensure .CURDIR is correct for tests that run sub-makes
To generate a diff of this commit:
cvs rdiff -u -r1.72 -r1.73 src/usr.bin/make/unit-tests/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/make/unit-tests/Makefile
diff -u src/usr.bin/make/unit-tests/Makefile:1.72 src/usr.bin/make/unit-tests/Makefile:1.73
--- src/usr.bin/make/unit-tests/Makefile:1.72 Tue Jul 28 16:11:55 2020
+++ src/usr.bin/make/unit-tests/Makefile Tue Jul 28 16:26:37 2020
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.72 2020/07/28 16:11:55 rillig Exp $
+# $NetBSD: Makefile,v 1.73 2020/07/28 16:26:37 sjg Exp $
#
# Unit tests for make(1)
#
@@ -136,7 +136,7 @@ LANG= C
@echo testing ${.IMPSRC}
@set -eu; \
cd ${.OBJDIR}; \
- env ${ENV.${.TARGET:R}} ${TEST_MAKE} \
+ env ${ENV.${.TARGET:R}} ${TEST_MAKE} -C ${.CURDIR} \
${FLAGS.${.TARGET:R}:U-k} -f ${.IMPSRC} \
> ${.TARGET}.tmp 2>&1 \
&& status=$$? || status=$$?; \