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 we have a value for .MAKE.UID



details:   https://anonhg.NetBSD.org/src/rev/d77cc6cf0aaf
branches:  trunk
changeset: 979083:d77cc6cf0aaf
user:      sjg <sjg%NetBSD.org@localhost>
date:      Sun Dec 13 02:09:33 2020 +0000

description:
Ensure we have a value for .MAKE.UID

diffstat:

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

diffs (28 lines):

diff -r 708624d00804 -r d77cc6cf0aaf usr.bin/make/unit-tests/Makefile
--- a/usr.bin/make/unit-tests/Makefile  Sun Dec 13 02:01:43 2020 +0000
+++ b/usr.bin/make/unit-tests/Makefile  Sun Dec 13 02:09:33 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.246 2020/12/13 00:46:25 rillig Exp $
+# $NetBSD: Makefile,v 1.247 2020/12/13 02:09:33 sjg Exp $
 #
 # Unit tests for make(1)
 #
@@ -31,6 +31,9 @@
 # src/tests/usr.bin/make/t_make.sh.
 #
 
+# we use this below but we might be an older make
+.MAKE.UID?= ${id -u:L:sh}
+
 # Each test is in a sub-makefile.
 # Keep the list sorted.
 # Any test that is commented out must be ignored in
@@ -199,7 +202,7 @@
 TESTS+=                modmisc
 TESTS+=                modts
 TESTS+=                modword
-.if ${.MAKE.UID:U0} > 0
+.if ${.MAKE.UID} > 0
 TESTS+=                objdir-writable
 .endif
 TESTS+=                opt



Home | Main Index | Thread Index | Old Index