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 make(1): add test for repeating the ...



details:   https://anonhg.NetBSD.org/src/rev/ddbf11d8d8e9
branches:  trunk
changeset: 976737:ddbf11d8d8e9
user:      rillig <rillig%NetBSD.org@localhost>
date:      Fri Oct 02 20:48:37 2020 +0000

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

diffstat:

 usr.bin/make/unit-tests/varmod-l-name-to-value.mk |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r 3a9cc5c53139 -r ddbf11d8d8e9 usr.bin/make/unit-tests/varmod-l-name-to-value.mk
--- a/usr.bin/make/unit-tests/varmod-l-name-to-value.mk Fri Oct 02 20:34:59 2020 +0000
+++ b/usr.bin/make/unit-tests/varmod-l-name-to-value.mk Fri Oct 02 20:48:37 2020 +0000
@@ -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:
        @:;



Home | Main Index | Thread Index | Old Index