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 :hash returnin...



details:   https://anonhg.NetBSD.org/src/rev/84d991b13059
branches:  trunk
changeset: 938210:84d991b13059
user:      rillig <rillig%NetBSD.org@localhost>
date:      Fri Sep 04 06:54:07 2020 +0000

description:
make(1): add test for :hash returning ffffffff

In the previous brute force search, it seemed there was no string with
that hash code.  That was probably an oversight or a little programming
mistake.  Anyway, it's possible to get that hash value, so keep the
example.

diffstat:

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

diffs (17 lines):

diff -r 758f5f817485 -r 84d991b13059 usr.bin/make/unit-tests/varmod-hash.mk
--- a/usr.bin/make/unit-tests/varmod-hash.mk    Fri Sep 04 06:12:16 2020 +0000
+++ b/usr.bin/make/unit-tests/varmod-hash.mk    Fri Sep 04 06:54:07 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: varmod-hash.mk,v 1.4 2020/09/04 05:23:25 rillig Exp $
+# $NetBSD: varmod-hash.mk,v 1.5 2020/09/04 06:54:07 rillig Exp $
 #
 # Tests for the :hash variable modifier, which computes a 32-bit hash from
 # the value of the expression.
@@ -39,6 +39,7 @@
 VECTORS+=      20000000 aezwuukx
 VECTORS+=      40000000 abdpnifu
 VECTORS+=      80000000 auusgoii
+VECTORS+=      ffffffff ahnvmfdw
 
 VECTORS+=      b2af338b ""
 VECTORS+=      3360ac65 a



Home | Main Index | Thread Index | Old Index