Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/usr.bin/nbperf Adjust test cases to hit the fudge case...



details:   https://anonhg.NetBSD.org/src/rev/be7866585ec3
branches:  trunk
changeset: 952664:be7866585ec3
user:      joerg <joerg%NetBSD.org@localhost>
date:      Sun Feb 14 01:27:33 2021 +0000

description:
Adjust test cases to hit the fudge case after the changes in nbperf
itself.

diffstat:

 tests/usr.bin/nbperf/t_nbperf.sh |  18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diffs (53 lines):

diff -r c9b3d42fb9d6 -r be7866585ec3 tests/usr.bin/nbperf/t_nbperf.sh
--- a/tests/usr.bin/nbperf/t_nbperf.sh  Sat Feb 13 22:19:47 2021 +0000
+++ b/tests/usr.bin/nbperf/t_nbperf.sh  Sun Feb 14 01:27:33 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: t_nbperf.sh,v 1.4 2021/01/07 16:03:08 joerg Exp $
+# $NetBSD: t_nbperf.sh,v 1.5 2021/02/14 01:27:33 joerg Exp $
 #
 # Copyright (c) 2012 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -62,17 +62,17 @@
 }
 chm_fudged_body()
 {
-       seq 0 9 > reference.txt
-       seq 1 10 > input.txt
+       seq 0 11 > reference.txt
+       seq 1 12 > input.txt
 
        atf_check -o file:reference.txt \
            $(atf_get_srcdir)/h_nbperf input.txt "chm -p" cat \
-           10 $(atf_get_srcdir)/hash_driver.c
+           12 $(atf_get_srcdir)/hash_driver.c
        atf_check -s exit:1 fgrep -q '^=' hash.c
 
        atf_check -o file:reference.txt \
            $(atf_get_srcdir)/h_nbperf input.txt "chm -f -p" cat \
-           10 $(atf_get_srcdir)/hash_driver.c
+           12 $(atf_get_srcdir)/hash_driver.c
        atf_check -s exit:0 fgrep -q '^=' hash.c
 }
 chm_fudged_clean()
@@ -163,17 +163,17 @@
 }
 bpz_fudged_body()
 {
-       seq 0 9 > reference.txt
-       seq 1 10 > input.txt
+       seq 0 11 > reference.txt
+       seq 1 12 > input.txt
 
        atf_check -o file:reference.txt \
            $(atf_get_srcdir)/h_nbperf input.txt "bpz -p" "sort -n" \
-           10 $(atf_get_srcdir)/hash_driver.c
+           12 $(atf_get_srcdir)/hash_driver.c
        atf_check -s exit:1 fgrep -q '^=' hash.c
 
        atf_check -o file:reference.txt \
            $(atf_get_srcdir)/h_nbperf input.txt "bpz -f -p" "sort -n" \
-           10 $(atf_get_srcdir)/hash_driver.c
+           12 $(atf_get_srcdir)/hash_driver.c
        atf_check -s exit:0 fgrep -q '^= (' hash.c
        atf_check -s exit:0 fgrep -q '^= 2' hash.c
 }



Home | Main Index | Thread Index | Old Index