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 numEntries can vary



details:   https://anonhg.NetBSD.org/src/rev/488987876ca8
branches:  trunk
changeset: 359857:488987876ca8
user:      sjg <sjg%NetBSD.org@localhost>
date:      Thu Jan 27 21:50:50 2022 +0000

description:
numEntries can vary

diffstat:

 usr.bin/make/unit-tests/Makefile           |  3 ++-
 usr.bin/make/unit-tests/opt-debug-hash.exp |  2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 3c012127eba6 -r 488987876ca8 usr.bin/make/unit-tests/Makefile
--- a/usr.bin/make/unit-tests/Makefile  Thu Jan 27 20:15:14 2022 +0000
+++ b/usr.bin/make/unit-tests/Makefile  Thu Jan 27 21:50:50 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.301 2022/01/27 02:24:46 sjg Exp $
+# $NetBSD: Makefile,v 1.302 2022/01/27 21:50:50 sjg Exp $
 #
 # Unit tests for make(1)
 #
@@ -503,6 +503,7 @@
 SED_CMDS.opt-debug-graph1=     ${STD_SED_CMDS.dg1}
 SED_CMDS.opt-debug-graph2=     ${STD_SED_CMDS.dg2}
 SED_CMDS.opt-debug-graph3=     ${STD_SED_CMDS.dg3}
+SED_CMDS.opt-debug-hash=       -e 's,\(numEntries\)=[1-9][0-9],\1=<entries>,'
 SED_CMDS.opt-debug-jobs=       -e 's,([0-9][0-9]*),(<pid>),'
 SED_CMDS.opt-debug-jobs+=      -e 's,pid [0-9][0-9]*,pid <pid>,'
 SED_CMDS.opt-debug-jobs+=      -e 's,Process [0-9][0-9]*,Process <pid>,'
diff -r 3c012127eba6 -r 488987876ca8 usr.bin/make/unit-tests/opt-debug-hash.exp
--- a/usr.bin/make/unit-tests/opt-debug-hash.exp        Thu Jan 27 20:15:14 2022 +0000
+++ b/usr.bin/make/unit-tests/opt-debug-hash.exp        Thu Jan 27 21:50:50 2022 +0000
@@ -1,6 +1,6 @@
 make: "opt-debug-hash.mk" line 11: Missing argument for ".error"
 make: Fatal errors encountered -- cannot continue
 HashTable targets: size=16 numEntries=0 maxchain=0
-HashTable Global variables: size=16 numEntries=23 maxchain=3
+HashTable Global variables: size=16 numEntries=<entries> maxchain=3
 make: stopped in unit-tests
 exit status 1



Home | Main Index | Thread Index | Old Index