Module Name:    src
Committed By:   rillig
Date:           Tue Jul 28 19:39:43 UTC 2020

Modified Files:
        src/usr.bin/make/unit-tests: varmisc.mk

Log Message:
make(1): add test for missing argument validation in .undef


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/usr.bin/make/unit-tests/varmisc.mk

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/varmisc.mk
diff -u src/usr.bin/make/unit-tests/varmisc.mk:1.18 src/usr.bin/make/unit-tests/varmisc.mk:1.19
--- src/usr.bin/make/unit-tests/varmisc.mk:1.18	Tue Jul 28 17:18:40 2020
+++ src/usr.bin/make/unit-tests/varmisc.mk	Tue Jul 28 19:39:43 2020
@@ -1,4 +1,4 @@
-# $Id: varmisc.mk,v 1.18 2020/07/28 17:18:40 rillig Exp $
+# $Id: varmisc.mk,v 1.19 2020/07/28 19:39:43 rillig Exp $
 #
 # Miscellaneous variable tests.
 
@@ -206,3 +206,14 @@ varerror-unclosed:
 	@echo ${UNCLOSED.${i}
 .endfor
 	@echo $@:end
+
+# As of 2020-07-28, .undef only undefines the first variable.
+# All further variable names are silently ignored.
+# See parse.c, string literal "undef".
+1=		1
+2=		2
+3=		3
+.undef 1 2 3
+.if ${1:U_}${2:U_}${3:U_} != _23
+.warning $1$2$3
+.endif

Reply via email to