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 tests: Delete ARP entry after failed ping ...



details:   https://anonhg.NetBSD.org/src/rev/b9d40e300529
branches:  trunk
changeset: 955095:b9d40e300529
user:      roy <roy%NetBSD.org@localhost>
date:      Fri Sep 18 16:33:49 2020 +0000

description:
arp tests: Delete ARP entry after failed ping test

As it might hang around in WAITDELETE for a few seconds.

diffstat:

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

diffs (27 lines):

diff -r 0681a8893e54 -r b9d40e300529 tests/net/arp/t_arp.sh
--- a/tests/net/arp/t_arp.sh    Fri Sep 18 15:04:25 2020 +0000
+++ b/tests/net/arp/t_arp.sh    Fri Sep 18 16:33:49 2020 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: t_arp.sh,v 1.44 2020/09/17 11:51:01 roy Exp $
+#      $NetBSD: t_arp.sh,v 1.45 2020/09/18 16:33:49 roy Exp $
 #
 # Copyright (c) 2015 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -491,6 +491,8 @@
        export RUMP_SERVER=$SOCKSRC
        atf_check -s not-exit:0 -o ignore -e ignore \
            rump.ping -n -w 1 -c 1 $IP4DST_PROXYARP1
+       # Remove ARP entry as it may hang around in WAITDELETE a few seconds
+       atf_check -s ignore rump.arp -d $IP4DST_PROXYARP1
 
        # Flushing
        extract_new_packets bus1 > ./out
@@ -525,6 +527,8 @@
        export RUMP_SERVER=$SOCKSRC
        atf_check -s not-exit:0 -o ignore -e ignore \
            rump.ping -n -w 1 -c 1 $IP4DST_PROXYARP2
+       # Remove ARP entry as it may hang around in WAITDELETE a few seconds
+       atf_check -s ignore rump.arp -d $IP4DST_PROXYARP2
 
        extract_new_packets bus1 > ./out
        $DEBUG && cat ./out



Home | Main Index | Thread Index | Old Index