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 test for brk_string wit...



details:   https://anonhg.NetBSD.org/src/rev/4168a09ad507
branches:  trunk
changeset: 974127:4168a09ad507
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sat Jul 25 20:35:35 2020 +0000

description:
make(1): add test for brk_string with more than 50 words

diffstat:

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

diffs (34 lines):

diff -r c5c3b4f6f47a -r 4168a09ad507 usr.bin/make/unit-tests/modmisc.exp
--- a/usr.bin/make/unit-tests/modmisc.exp       Fri Jul 24 12:41:20 2020 +0000
+++ b/usr.bin/make/unit-tests/modmisc.exp       Sat Jul 25 20:35:35 2020 +0000
@@ -90,4 +90,5 @@
 mod-Q: new
 
 line
+mod-break-many-words: 500
 exit status 0
diff -r c5c3b4f6f47a -r 4168a09ad507 usr.bin/make/unit-tests/modmisc.mk
--- a/usr.bin/make/unit-tests/modmisc.mk        Fri Jul 24 12:41:20 2020 +0000
+++ b/usr.bin/make/unit-tests/modmisc.mk        Sat Jul 25 20:35:35 2020 +0000
@@ -1,4 +1,4 @@
-# $Id: modmisc.mk,v 1.21 2020/07/23 19:46:55 rillig Exp $
+# $Id: modmisc.mk,v 1.22 2020/07/25 20:35:35 rillig Exp $
 #
 # miscellaneous modifier tests
 
@@ -24,6 +24,7 @@
 all:   mod-assign-nested
 all:   mod-tu-space
 all:   mod-Q
+all:   mod-break-many-words
 
 modsysv:
        @echo "The answer is ${libfoo.a:L:libfoo.a=42}"
@@ -183,3 +184,7 @@
 
 mod-Q:
        @echo $@: new${.newline:Q}${.newline:Q}line
+
+# Cover the bmake_realloc in brk_string.
+mod-break-many-words:
+       @echo $@: ${UNDEF:U:range=500:[#]}



Home | Main Index | Thread Index | Old Index