Module Name:    src
Committed By:   ozaki-r
Date:           Tue Jul  9 02:50:25 UTC 2019

Modified Files:
        src/tests/net/if_bridge: t_rtable.sh

Log Message:
tests: check that a new cache is not created over the limit


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/tests/net/if_bridge/t_rtable.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/tests/net/if_bridge/t_rtable.sh
diff -u src/tests/net/if_bridge/t_rtable.sh:1.5 src/tests/net/if_bridge/t_rtable.sh:1.6
--- src/tests/net/if_bridge/t_rtable.sh:1.5	Fri May 31 15:36:10 2019
+++ src/tests/net/if_bridge/t_rtable.sh	Tue Jul  9 02:50:24 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: t_rtable.sh,v 1.5 2019/05/31 15:36:10 gson Exp $
+#	$NetBSD: t_rtable.sh,v 1.6 2019/07/09 02:50:24 ozaki-r Exp $
 #
 # Copyright (c) 2017 Internet Initiative Japan Inc.
 # All rights reserved.
@@ -341,7 +341,14 @@ bridge_rtable_maxaddr_body()
 	atf_check -s exit:0 -o match:"max cache: 1" /sbin/brconfig bridge0
 	/sbin/brconfig bridge0
 
-	# Test just one address is cached
+	# Check a cache is flushed out
+	n=$(get_number_of_caches)
+	atf_check_equal $n 1
+
+	# Test a new address cache is not created
+	export RUMP_SERVER=$SOCK1
+	atf_check -s exit:0 -o ignore rump.ping -n -w $TIMEOUT -c 1 $IP2
+	export RUMP_SERVER=$SOCK2
 	n=$(get_number_of_caches)
 	atf_check_equal $n 1
 

Reply via email to