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 Set default for .MAKE.OS once



details:   https://anonhg.NetBSD.org/src/rev/596263c6a4f2
branches:  trunk
changeset: 948230:596263c6a4f2
user:      sjg <sjg%NetBSD.org@localhost>
date:      Mon Dec 21 18:22:31 2020 +0000

description:
Set default for .MAKE.OS once

diffstat:

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

diffs (28 lines):

diff -r 6cdfa9ca2139 -r 596263c6a4f2 usr.bin/make/unit-tests/Makefile
--- a/usr.bin/make/unit-tests/Makefile  Mon Dec 21 16:38:02 2020 +0000
+++ b/usr.bin/make/unit-tests/Makefile  Mon Dec 21 18:22:31 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.253 2020/12/20 19:37:23 rillig Exp $
+# $NetBSD: Makefile,v 1.254 2020/12/21 18:22:31 sjg Exp $
 #
 # Unit tests for make(1)
 #
@@ -31,7 +31,8 @@
 # src/tests/usr.bin/make/t_make.sh.
 #
 
-# we use this below but we might be an older make
+# we use these below but we might be an older make
+.MAKE.OS?= ${uname -s:L:sh}
 .MAKE.UID?= ${id -u:L:sh}
 
 # Each test is in a sub-makefile.
@@ -587,7 +588,7 @@
 
 MAKE_TEST_ENV?=        MALLOC_OPTIONS="JA"     # for jemalloc
 
-.if ${.MAKE.OS:U${uname -s:L:sh}} == "NetBSD"
+.if ${.MAKE.OS} == "NetBSD"
 LIMIT_RESOURCES?=      ulimit -v 200000
 .endif
 LIMIT_RESOURCES?=      :



Home | Main Index | Thread Index | Old Index