Module Name:    src
Committed By:   sjg
Date:           Sun Nov 15 05:43:56 UTC 2020

Modified Files:
        src/usr.bin/make/unit-tests: opt-chdir.mk

Log Message:
Avoid problem with /usr/obj


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/usr.bin/make/unit-tests/opt-chdir.mk

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/opt-chdir.mk
diff -u src/usr.bin/make/unit-tests/opt-chdir.mk:1.4 src/usr.bin/make/unit-tests/opt-chdir.mk:1.5
--- src/usr.bin/make/unit-tests/opt-chdir.mk:1.4	Sat Nov 14 22:39:14 2020
+++ src/usr.bin/make/unit-tests/opt-chdir.mk	Sun Nov 15 05:43:56 2020
@@ -1,4 +1,4 @@
-# $NetBSD: opt-chdir.mk,v 1.4 2020/11/14 22:39:14 rillig Exp $
+# $NetBSD: opt-chdir.mk,v 1.5 2020/11/15 05:43:56 sjg Exp $
 #
 # Tests for the -C command line option, which changes the directory at the
 # beginning.
@@ -20,7 +20,7 @@ chdir-filename-too-long: .PHONY .IGNORE
 # In this test, it is the root directory since almost any other directory
 # is not guaranteed to exist on every platform.
 chdir-root: .PHONY .IGNORE
-	@${MAKE} -C / -V 'cwd: $${.CURDIR}'
+	@MAKE_OBJDIR_CHECK_WRITABLE=no ${MAKE} -C / -V 'cwd: $${.CURDIR}'
 
 # Trying to change to a nonexistent directory exits immediately.
 chdir-nonexistent: .PHONY .IGNORE

Reply via email to