Module Name:    src
Committed By:   rillig
Date:           Sun Aug 23 19:30:13 UTC 2020

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

Log Message:
make(1): move test for .undef into separate file


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/usr.bin/make/unit-tests/directive-undef.mk
cvs rdiff -u -r1.21 -r1.22 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/directive-undef.mk
diff -u src/usr.bin/make/unit-tests/directive-undef.mk:1.2 src/usr.bin/make/unit-tests/directive-undef.mk:1.3
--- src/usr.bin/make/unit-tests/directive-undef.mk:1.2	Sun Aug 16 14:25:16 2020
+++ src/usr.bin/make/unit-tests/directive-undef.mk	Sun Aug 23 19:30:13 2020
@@ -1,8 +1,17 @@
-# $NetBSD: directive-undef.mk,v 1.2 2020/08/16 14:25:16 rillig Exp $
+# $NetBSD: directive-undef.mk,v 1.3 2020/08/23 19:30:13 rillig Exp $
 #
 # Tests for the .undef directive.
 
-# TODO: Implementation
+# 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
 
 all:
 	@:;

Index: src/usr.bin/make/unit-tests/varmisc.mk
diff -u src/usr.bin/make/unit-tests/varmisc.mk:1.21 src/usr.bin/make/unit-tests/varmisc.mk:1.22
--- src/usr.bin/make/unit-tests/varmisc.mk:1.21	Sat Aug  8 14:59:59 2020
+++ src/usr.bin/make/unit-tests/varmisc.mk	Sun Aug 23 19:30:13 2020
@@ -1,4 +1,4 @@
-# $Id: varmisc.mk,v 1.21 2020/08/08 14:59:59 rillig Exp $
+# $Id: varmisc.mk,v 1.22 2020/08/23 19:30:13 rillig Exp $
 #
 # Miscellaneous variable tests.
 
@@ -211,14 +211,3 @@ varerror-unclosed:
 .endfor
 	@echo ${UNCLOSED_INDIR_2}
 	@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