Module Name: src Committed By: rillig Date: Tue Nov 29 23:54:55 UTC 2022
Modified Files: src/usr.bin/make/unit-tests: varmod-to-lower.mk Log Message: tests/make: document that the ':tl' modifier does not split words To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/usr.bin/make/unit-tests/varmod-to-lower.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-to-lower.mk diff -u src/usr.bin/make/unit-tests/varmod-to-lower.mk:1.5 src/usr.bin/make/unit-tests/varmod-to-lower.mk:1.6 --- src/usr.bin/make/unit-tests/varmod-to-lower.mk:1.5 Sun Nov 15 20:20:58 2020 +++ src/usr.bin/make/unit-tests/varmod-to-lower.mk Tue Nov 29 23:54:55 2022 @@ -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