summaryrefslogtreecommitdiff
path: root/usr.bin/make
diff options
context:
space:
mode:
authorrillig <rillig@NetBSD.org>2022-11-29 23:54:55 +0000
committerrillig <rillig@NetBSD.org>2022-11-29 23:54:55 +0000
commit41d76b63c1b4dee035ec659e1cfbfe93bf240482 (patch)
tree73d912845429ebddf516f0a101bcb02fb508e654 /usr.bin/make
parent3a269c6ebf710ba27c9df885fdda0a0fc5dd432e (diff)
tests/make: document that the ':tl' modifier does not split words
Diffstat (limited to 'usr.bin/make')
-rw-r--r--usr.bin/make/unit-tests/varmod-to-lower.mk15
1 files changed, 10 insertions, 5 deletions
diff --git a/usr.bin/make/unit-tests/varmod-to-lower.mk b/usr.bin/make/unit-tests/varmod-to-lower.mk
index 19d3406054b..44116fd3eee 100644
--- a/usr.bin/make/unit-tests/varmod-to-lower.mk
+++ b/usr.bin/make/unit-tests/varmod-to-lower.mk
@@ -1,7 +1,7 @@
-# $NetBSD: varmod-to-lower.mk,v 1.5 2020/11/15 20:20:58 rillig Exp $
+# $NetBSD: varmod-to-lower.mk,v 1.6 2022/11/29 23:54:55 rillig Exp $
#
-# Tests for the :tl variable modifier, which returns the words in the
-# variable value, converted to lowercase.
+# Tests for the :tl variable modifier, which converts the expression value
+# to lowercase.
#
# TODO: What about non-ASCII characters? ISO-8859-1, UTF-8?
@@ -17,5 +17,10 @@
. error
.endif
-all:
- @:;
+# The ':tl' modifier works on the whole string, without splitting it into
+# words.
+.if ${:Umultiple spaces:tl} != "multiple spaces"
+. error
+.endif
+
+all: .PHONY