Source-Changes-HG archive

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

[src/trunk]: src/tests/net/arp arp_rtm: Only ping once



details:   https://anonhg.NetBSD.org/src/rev/1c2740e9684d
branches:  trunk
changeset: 938858:1c2740e9684d
user:      roy <roy%NetBSD.org@localhost>
date:      Thu Sep 17 11:51:01 2020 +0000

description:
arp_rtm: Only ping once

Pointless doing 10 pings.
On a slow system, it's possible that many RTM_MISS messages could
overflow into the next test.

diffstat:

 tests/net/arp/t_arp.sh |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (20 lines):

diff -r c1cc2e4b2ea7 -r 1c2740e9684d tests/net/arp/t_arp.sh
--- a/tests/net/arp/t_arp.sh    Thu Sep 17 11:37:35 2020 +0000
+++ b/tests/net/arp/t_arp.sh    Thu Sep 17 11:51:01 2020 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: t_arp.sh,v 1.43 2020/09/15 11:19:10 roy Exp $
+#      $NetBSD: t_arp.sh,v 1.44 2020/09/17 11:51:01 roy Exp $
 #
 # Copyright (c) 2015 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -717,9 +717,8 @@
        rump.route -n monitor -c 1 > $file &
        pid=$!
        sleep 1
-       # arp_maxtries = 5, second between each try
        atf_check -s exit:2 -o ignore -e ignore \
-               rump.ping -n -w 10 -c 10 $IP4DST_FAIL1
+               rump.ping -n -w 1 -c 1 $IP4DST_FAIL1
        wait $pid
        $DEBUG && cat $file
 



Home | Main Index | Thread Index | Old Index