Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/net/if_bridge tests: check that a new cache is not cre...
details: https://anonhg.NetBSD.org/src/rev/fcc3b31bdcdb
branches: trunk
changeset: 457626:fcc3b31bdcdb
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Tue Jul 09 02:50:24 2019 +0000
description:
tests: check that a new cache is not created over the limit
diffstat:
tests/net/if_bridge/t_rtable.sh | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diffs (25 lines):
diff -r 0c0488265cd2 -r fcc3b31bdcdb tests/net/if_bridge/t_rtable.sh
--- a/tests/net/if_bridge/t_rtable.sh Mon Jul 08 23:06:15 2019 +0000
+++ b/tests/net/if_bridge/t_rtable.sh Tue Jul 09 02:50:24 2019 +0000
@@ -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 @@
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
Home |
Main Index |
Thread Index |
Old Index