Module Name: src
Committed By: rillig
Date: Tue Jul 21 21:34:41 UTC 2020
Modified Files:
src/usr.bin/make/unit-tests: modmisc.exp modmisc.mk
Log Message:
make(1): add test for :Q and .newline
To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/usr.bin/make/unit-tests/modmisc.exp
cvs rdiff -u -r1.18 -r1.19 src/usr.bin/make/unit-tests/modmisc.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/modmisc.exp
diff -u src/usr.bin/make/unit-tests/modmisc.exp:1.23 src/usr.bin/make/unit-tests/modmisc.exp:1.24
--- src/usr.bin/make/unit-tests/modmisc.exp:1.23 Mon Jul 20 19:53:40 2020
+++ src/usr.bin/make/unit-tests/modmisc.exp Tue Jul 21 21:34:41 2020
@@ -83,4 +83,7 @@ mod-assign-nested: else2e2
mod-assign-nested: then3t3
mod-assign-nested: else4e4
mod-tu-space: A B
+mod-Q: new
+
+line
exit status 0
Index: src/usr.bin/make/unit-tests/modmisc.mk
diff -u src/usr.bin/make/unit-tests/modmisc.mk:1.18 src/usr.bin/make/unit-tests/modmisc.mk:1.19
--- src/usr.bin/make/unit-tests/modmisc.mk:1.18 Mon Jul 20 19:03:25 2020
+++ src/usr.bin/make/unit-tests/modmisc.mk Tue Jul 21 21:34:41 2020
@@ -1,4 +1,4 @@
-# $Id: modmisc.mk,v 1.18 2020/07/20 19:03:25 rillig Exp $
+# $Id: modmisc.mk,v 1.19 2020/07/21 21:34:41 rillig Exp $
#
# miscellaneous modifier tests
@@ -22,6 +22,7 @@ all: mod-C-limits
all: mod-assign
all: mod-assign-nested
all: mod-tu-space
+all: mod-Q
modsysv:
@echo "The answer is ${libfoo.a:L:libfoo.a=42}"
@@ -172,3 +173,6 @@ mod-tu-space:
# as a single string, not as a list of words. Therefore,
# the adjacent spaces are preserved.
@echo $@: ${a b:L:tu:Q}
+
+mod-Q:
+ @echo $@: new${.newline:Q}${.newline:Q}line