Module Name: src
Committed By: ozaki-r
Date: Tue Jun 27 04:52:45 UTC 2017
Modified Files:
src/tests/net/route: t_flags.sh t_flags6.sh
Log Message:
Check existence of ARP/NDP entries
Checking ARP/NDP entries is valid rather than checking routes.
To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/tests/net/route/t_flags.sh
cvs rdiff -u -r1.12 -r1.13 src/tests/net/route/t_flags6.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/route/t_flags.sh
diff -u src/tests/net/route/t_flags.sh:1.15 src/tests/net/route/t_flags.sh:1.16
--- src/tests/net/route/t_flags.sh:1.15 Wed Dec 21 02:46:08 2016
+++ src/tests/net/route/t_flags.sh Tue Jun 27 04:52:45 2017
@@ -1,4 +1,4 @@
-# $NetBSD: t_flags.sh,v 1.15 2016/12/21 02:46:08 ozaki-r Exp $
+# $NetBSD: t_flags.sh,v 1.16 2017/06/27 04:52:45 ozaki-r Exp $
#
# Copyright (c) 2015 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -163,6 +163,7 @@ test_blackhole()
# Shouldn't be created
check_route_no_entry 10.0.0.1
+ atf_check -s not-exit:0 -e match:'no entry' rump.arp -n 10.0.0.1
}
test_reject()
@@ -185,6 +186,7 @@ test_reject()
# Shouldn't be created
check_route_no_entry 10.0.0.1
+ atf_check -s not-exit:0 -e match:'no entry' rump.arp -n 10.0.0.1
# Gateway is lo0 (RTF_GATEWAY)
@@ -204,6 +206,7 @@ test_reject()
# Shouldn't be created
check_route_no_entry 10.0.0.1
+ atf_check -s not-exit:0 -e match:'no entry' rump.arp -n 10.0.0.1
# Gateway is lo0 (RTF_HOST)
Index: src/tests/net/route/t_flags6.sh
diff -u src/tests/net/route/t_flags6.sh:1.12 src/tests/net/route/t_flags6.sh:1.13
--- src/tests/net/route/t_flags6.sh:1.12 Wed Dec 21 02:46:08 2016
+++ src/tests/net/route/t_flags6.sh Tue Jun 27 04:52:45 2017
@@ -1,4 +1,4 @@
-# $NetBSD: t_flags6.sh,v 1.12 2016/12/21 02:46:08 ozaki-r Exp $
+# $NetBSD: t_flags6.sh,v 1.13 2017/06/27 04:52:45 ozaki-r Exp $
#
# Copyright (c) 2016 Internet Initiative Japan Inc.
# All rights reserved.
@@ -149,6 +149,8 @@ test_blackhole6()
# Shouldn't be created
check_route_no_entry $IP6_PEER
+ atf_check -s not-exit:0 -o ignore -e match:'no entry' \
+ rump.ndp -n $IP6_PEER
}
test_reject6()
@@ -173,6 +175,8 @@ test_reject6()
# Shouldn't be created
check_route_no_entry $IP6_PEER
+ atf_check -s not-exit:0 -o ignore -e match:'no entry' \
+ rump.ndp -n $IP6_PEER
# Gateway is lo0 (RTF_GATEWAY)
@@ -193,6 +197,8 @@ test_reject6()
# Shouldn't be created
check_route_no_entry $IP6_PEER
+ atf_check -s not-exit:0 -o ignore -e match:'no entry' \
+ rump.ndp -n $IP6_PEER
# Gateway is lo0 (RTF_HOST)