Module Name: src
Committed By: sjg
Date: Sun Dec 13 02:09:33 UTC 2020
Modified Files:
src/usr.bin/make/unit-tests: Makefile
Log Message:
Ensure we have a value for .MAKE.UID
To generate a diff of this commit:
cvs rdiff -u -r1.246 -r1.247 src/usr.bin/make/unit-tests/Makefile
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/Makefile
diff -u src/usr.bin/make/unit-tests/Makefile:1.246 src/usr.bin/make/unit-tests/Makefile:1.247
--- src/usr.bin/make/unit-tests/Makefile:1.246 Sun Dec 13 00:46:25 2020
+++ src/usr.bin/make/unit-tests/Makefile Sun Dec 13 02:09:33 2020
@@ -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+= modmatch
TESTS+= modmisc
TESTS+= modts
TESTS+= modword
-.if ${.MAKE.UID:U0} > 0
+.if ${.MAKE.UID} > 0
TESTS+= objdir-writable
.endif
TESTS+= opt