Module Name:    src
Committed By:   rillig
Date:           Fri Oct  2 20:48:37 UTC 2020

Modified Files:
        src/usr.bin/make/unit-tests: varmod-l-name-to-value.mk

Log Message:
make(1): add test for repeating the :L variable modifier


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 \
    src/usr.bin/make/unit-tests/varmod-l-name-to-value.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/varmod-l-name-to-value.mk
diff -u src/usr.bin/make/unit-tests/varmod-l-name-to-value.mk:1.5 src/usr.bin/make/unit-tests/varmod-l-name-to-value.mk:1.6
--- src/usr.bin/make/unit-tests/varmod-l-name-to-value.mk:1.5	Wed Sep 30 06:15:43 2020
+++ src/usr.bin/make/unit-tests/varmod-l-name-to-value.mk	Fri Oct  2 20:48:37 2020
@@ -1,4 +1,4 @@
-# $NetBSD: varmod-l-name-to-value.mk,v 1.5 2020/09/30 06:15:43 rillig Exp $
+# $NetBSD: varmod-l-name-to-value.mk,v 1.6 2020/10/02 20:48:37 rillig Exp $
 #
 # Tests for the :L modifier, which returns the variable name as the new value.
 
@@ -34,5 +34,11 @@
 .if ${value:${:UL}} == ""
 .endif
 
+# As of 2020-10-02, the :L modifier does not ensure that it is followed by
+# a delimiter, that is, a ':' or endc.  Neither does the :P modifier.
+.if ${value:LLLLLLPL} != "value"
+.  error
+.endif
+
 all:
 	@:;

Reply via email to