diff options
| author | Simon J. Gerraty <sjg@FreeBSD.org> | 2026-04-06 18:25:05 +0000 |
|---|---|---|
| committer | Simon J. Gerraty <sjg@FreeBSD.org> | 2026-04-06 18:25:05 +0000 |
| commit | fe271bdb43cf88ee129d94c0e286fe618fd28e89 (patch) | |
| tree | f8a53c5b636b2af4eaa7ac94683cb00033588454 /unit-tests/opt-chdir.mk | |
| parent | 638c66de4a0faa4c2e815e81cd4021c2387c7e0f (diff) | |
Diffstat (limited to 'unit-tests/opt-chdir.mk')
| -rw-r--r-- | unit-tests/opt-chdir.mk | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/unit-tests/opt-chdir.mk b/unit-tests/opt-chdir.mk index e94b8799af2e..19055aba0824 100644 --- a/unit-tests/opt-chdir.mk +++ b/unit-tests/opt-chdir.mk @@ -1,4 +1,4 @@ -# $NetBSD: opt-chdir.mk,v 1.7 2024/04/02 11:11:00 rillig Exp $ +# $NetBSD: opt-chdir.mk,v 1.8 2026/02/10 21:22:13 sjg Exp $ # # Tests for the -C command line option, which changes the directory at the # beginning. @@ -13,8 +13,10 @@ all: chdir-nonexistent # Changing to another directory is possible via the command line. # In this test, it is the root directory since almost any other directory # is not guaranteed to exist on every platform. +# Force MAKEOBJDIRPREFIX=/ to avoid looking elsewhere for .OBJDIR chdir-root: .PHONY .IGNORE - @MAKE_OBJDIR_CHECK_WRITABLE=no ${MAKE} -C / -V 'cwd: $${.CURDIR}' + @MAKE_OBJDIR_CHECK_WRITABLE=no MAKEOBJDIRPREFIX=/ \ + ${MAKE} -C / -V 'cwd: $${.CURDIR}' # Trying to change to a nonexistent directory exits immediately. # Note: just because the whole point of /nonexistent is that it should |
