Source-Changes-HG archive

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

[src/trunk]: src/tests/net/if_vlan vlan: added checks of linkstate



details:   https://anonhg.NetBSD.org/src/rev/105f091aa673
branches:  trunk
changeset: 1022136:105f091aa673
user:      yamaguchi <yamaguchi%NetBSD.org@localhost>
date:      Tue Jul 06 01:18:22 2021 +0000

description:
vlan: added checks of linkstate

diffstat:

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

diffs (22 lines):

diff -r b7eb87c291f6 -r 105f091aa673 tests/net/if_vlan/t_vlan.sh
--- a/tests/net/if_vlan/t_vlan.sh       Tue Jul 06 01:16:01 2021 +0000
+++ b/tests/net/if_vlan/t_vlan.sh       Tue Jul 06 01:18:22 2021 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: t_vlan.sh,v 1.18 2021/07/02 04:38:10 yamaguchi Exp $
+#      $NetBSD: t_vlan.sh,v 1.19 2021/07/06 01:18:22 yamaguchi Exp $
 #
 # Copyright (c) 2016 Internet Initiative Japan Inc.
 # All rights reserved.
@@ -589,8 +589,12 @@
        $atf_ifconfig shmif1 link b0:a0:75:00:01:01 active
        $atf_ifconfig vlan0 create
 
+       atf_check -s exit:0 -o match:'status: +down' \
+           rump.ifconfig vlan0
        $atf_ifconfig vlan0 vlan 10 vlanif shmif0
        $atf_ifconfig vlan0 -vlanif
+       atf_check -s exit:0 -o match:'status: +down' \
+           rump.ifconfig vlan0
 
        $atf_ifconfig vlan0 vlan 10 vlanif shmif0
        $atf_ifconfig vlan0 -vlanif shmif0



Home | Main Index | Thread Index | Old Index