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 tests/make: document that the ':tl' ...
details: https://anonhg.NetBSD.org/src/rev/8385d5a86b3c
branches: trunk
changeset: 372448:8385d5a86b3c
user: rillig <rillig%NetBSD.org@localhost>
date: Tue Nov 29 23:54:55 2022 +0000
description:
tests/make: document that the ':tl' modifier does not split words
diffstat:
usr.bin/make/unit-tests/varmod-to-lower.mk | 15 ++++++++++-----
1 files changed, 10 insertions(+), 5 deletions(-)
diffs (27 lines):
diff -r 6a1196403ec6 -r 8385d5a86b3c usr.bin/make/unit-tests/varmod-to-lower.mk
--- a/usr.bin/make/unit-tests/varmod-to-lower.mk Tue Nov 29 20:50:37 2022 +0000
+++ b/usr.bin/make/unit-tests/varmod-to-lower.mk Tue Nov 29 23:54:55 2022 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index