Source-Changes-HG archive

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

[src/trunk]: src/tests/net/ndp ndp_rtm: Only ping once



details:   https://anonhg.NetBSD.org/src/rev/e18cd704dc7d
branches:  trunk
changeset: 955062:e18cd704dc7d
user:      roy <roy%NetBSD.org@localhost>
date:      Thu Sep 17 11:56:35 2020 +0000

description:
ndp_rtm: Only ping once

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

diffstat:

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

diffs (20 lines):

diff -r fe0ea810af4a -r e18cd704dc7d tests/net/ndp/t_ndp.sh
--- a/tests/net/ndp/t_ndp.sh    Thu Sep 17 11:51:01 2020 +0000
+++ b/tests/net/ndp/t_ndp.sh    Thu Sep 17 11:56:35 2020 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: t_ndp.sh,v 1.38 2020/03/15 21:15:25 roy Exp $
+#      $NetBSD: t_ndp.sh,v 1.39 2020/09/17 11:56:35 roy Exp $
 #
 # Copyright (c) 2015 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -464,9 +464,8 @@
        rump.route -n monitor -c 1 > $file &
        pid=$!
        sleep 1
-       # nd6_mmaxtries = 3, second between each try
        atf_check -s exit:1 -o ignore -e ignore \
-               rump.ping6 -n -X 3 -c 3 $IP6DST_FAIL1
+               rump.ping6 -n -X 1 -c 1 $IP6DST_FAIL1
        wait $pid
        $DEBUG && cat $file
 



Home | Main Index | Thread Index | Old Index