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 make(1): add another test case for m...



details:   https://anonhg.NetBSD.org/src/rev/86b8c74b0072
branches:  trunk
changeset: 937109:86b8c74b0072
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sun Aug 09 07:18:03 2020 +0000

description:
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.

diffstat:

 usr.bin/make/unit-tests/modmisc.exp |  1 +
 usr.bin/make/unit-tests/modmisc.mk  |  3 ++-
 2 files changed, 3 insertions(+), 1 deletions(-)

diffs (28 lines):

diff -r 9f621b32e930 -r 86b8c74b0072 usr.bin/make/unit-tests/modmisc.exp
--- a/usr.bin/make/unit-tests/modmisc.exp       Sun Aug 09 07:09:57 2020 +0000
+++ b/usr.bin/make/unit-tests/modmisc.exp       Sun Aug 09 07:18:03 2020 +0000
@@ -54,6 +54,7 @@
 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:
diff -r 9f621b32e930 -r 86b8c74b0072 usr.bin/make/unit-tests/modmisc.mk
--- a/usr.bin/make/unit-tests/modmisc.mk        Sun Aug 09 07:09:57 2020 +0000
+++ b/usr.bin/make/unit-tests/modmisc.mk        Sun Aug 09 07:18:03 2020 +0000
@@ -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 @@
        @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.



Home | Main Index | Thread Index | Old Index