Module Name: src
Committed By: rillig
Date: Sun Aug 9 07:18:03 UTC 2020
Modified Files:
src/usr.bin/make/unit-tests: modmisc.exp modmisc.mk
Log Message:
make(1): add another test case for mod-subst-dollar
Having only 8 dollar signs does not prove anything. It might still be
the result of 3 substitutions in a row. Having 5 substitutions in a row
is less likely though.
To generate a diff of this commit:
cvs rdiff -u -r1.38 -r1.39 src/usr.bin/make/unit-tests/modmisc.exp
cvs rdiff -u -r1.36 -r1.37 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.38 src/usr.bin/make/unit-tests/modmisc.exp:1.39
--- src/usr.bin/make/unit-tests/modmisc.exp:1.38 Sat Aug 8 13:09:55 2020
+++ src/usr.bin/make/unit-tests/modmisc.exp Sun Aug 9 07:18:03 2020
@@ -54,6 +54,7 @@ mod-subst-dollar:$5:
mod-subst-dollar:$6:
mod-subst-dollar:$7:
mod-subst-dollar:$8:
+mod-subst-dollar:$40:
mod-subst-dollar:U8:
mod-subst-dollar:$$$$:
mod-loop-dollar:1:
Index: src/usr.bin/make/unit-tests/modmisc.mk
diff -u src/usr.bin/make/unit-tests/modmisc.mk:1.36 src/usr.bin/make/unit-tests/modmisc.mk:1.37
--- src/usr.bin/make/unit-tests/modmisc.mk:1.36 Sat Aug 8 13:09:55 2020
+++ src/usr.bin/make/unit-tests/modmisc.mk Sun Aug 9 07:18:03 2020
@@ -1,4 +1,4 @@
-# $Id: modmisc.mk,v 1.36 2020/08/08 13:09:55 rillig Exp $
+# $Id: modmisc.mk,v 1.37 2020/08/09 07:18:03 rillig Exp $
#
# miscellaneous modifier tests
@@ -216,6 +216,7 @@ mod-subst-dollar:
@echo $@:${:U6:S,^,$$$$$$,:Q}:
@echo $@:${:U7:S,^,$$$$$$$,:Q}:
@echo $@:${:U8:S,^,$$$$$$$$,:Q}:
+ @echo $@:${:U40:S,^,$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$,:Q}:
# This generates no dollar at all:
@echo $@:${:UU8:S,^,${:U$$$$$$$$},:Q}:
# Here is an alternative way to generate dollar characters.