tests/make: use more distinctive placeholder for TMPDIR
This commit is contained in:
parent
b622e32a93
commit
05a9897bf8
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.303 2022/02/07 22:43:50 rillig Exp $
|
||||
# $NetBSD: Makefile,v 1.304 2022/02/09 18:54:19 rillig Exp $
|
||||
#
|
||||
# Unit tests for make(1)
|
||||
#
|
||||
|
@ -695,7 +695,7 @@ _SED_CMDS+= -e '/stopped/s, /.*, unit-tests,'
|
|||
# Allow the test files to be placed anywhere.
|
||||
_SED_CMDS+= -e 's,\(\.PARSEDIR}\) = `'"/[^']*'"',\1 = <some-dir>,'
|
||||
_SED_CMDS+= -e 's,\(\.INCLUDEDFROMDIR}\) = `'"/[^']*'"',\1 = <some-dir>,'
|
||||
_SED_CMDS+= -e 's,${TMPDIR},TMPDIR,g'
|
||||
_SED_CMDS+= -e 's,${TMPDIR},<tmpdir>,g'
|
||||
# canonicalize ${.OBJDIR} and ${.CURDIR}
|
||||
.if ${.OBJDIR} != ${.CURDIR}
|
||||
# yes this is inaccurate but none of the tests expect <objdir> anywhere
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
makeobjdir-direct:
|
||||
show-objdir: TMPDIR/6a8899d2-d227-4b55-9b6b-f3c8eeb83fd5
|
||||
show-objdir: <tmpdir>/6a8899d2-d227-4b55-9b6b-f3c8eeb83fd5
|
||||
makeobjdir-indirect:
|
||||
show-objdir: TMPDIR/a7b41170-53f8-4cc2-bc5c-e4c3dd93ec45/
|
||||
show-objdir: <tmpdir>/a7b41170-53f8-4cc2-bc5c-e4c3dd93ec45/
|
||||
exit status 0
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
MAKELEVEL=1
|
||||
TMPDIR=TMPDIR
|
||||
TMPDIR=<tmpdir>
|
||||
UT_DOLLAR=This is $UT_FU
|
||||
UT_FOO=foobar is fubar
|
||||
UT_FU=fubar
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
make warning: TMPDIR/roobj: Permission denied.
|
||||
TMPDIR
|
||||
TMPDIR/roobj
|
||||
TMPDIR/roobj
|
||||
make warning: <tmpdir>/roobj: Permission denied.
|
||||
<tmpdir>
|
||||
<tmpdir>/roobj
|
||||
<tmpdir>/roobj
|
||||
exit status 0
|
||||
|
|
Loading…
Reference in New Issue