Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/make/unit-tests Ensure .CURDIR is correct for tests ...



details:   https://anonhg.NetBSD.org/src/rev/029ada418d5a
branches:  trunk
changeset: 936517:029ada418d5a
user:      sjg <sjg%NetBSD.org@localhost>
date:      Tue Jul 28 16:26:37 2020 +0000

description:
Ensure .CURDIR is correct for tests that run sub-makes

diffstat:

 usr.bin/make/unit-tests/Makefile |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r f4649cd68ed7 -r 029ada418d5a usr.bin/make/unit-tests/Makefile
--- a/usr.bin/make/unit-tests/Makefile  Tue Jul 28 16:11:55 2020 +0000
+++ b/usr.bin/make/unit-tests/Makefile  Tue Jul 28 16:26:37 2020 +0000
@@ -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 @@
        @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=$$?; \



Home | Main Index | Thread Index | Old Index