Module Name: src
Committed By: msaitoh
Date: Wed Oct 11 08:10:53 UTC 2017
Modified Files:
src/tests/net/if_vlan: t_vlan.sh
Log Message:
Add a test case for duplicated VLAN ID.
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/tests/net/if_vlan/t_vlan.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_vlan/t_vlan.sh
diff -u src/tests/net/if_vlan/t_vlan.sh:1.3 src/tests/net/if_vlan/t_vlan.sh:1.4
--- src/tests/net/if_vlan/t_vlan.sh:1.3 Wed Aug 9 06:19:56 2017
+++ src/tests/net/if_vlan/t_vlan.sh Wed Oct 11 08:10:53 2017
@@ -1,4 +1,4 @@
-# $NetBSD: t_vlan.sh,v 1.3 2017/08/09 06:19:56 knakahara Exp $
+# $NetBSD: t_vlan.sh,v 1.4 2017/10/11 08:10:53 msaitoh Exp $
#
# Copyright (c) 2016 Internet Initiative Japan Inc.
# All rights reserved.
@@ -451,6 +451,12 @@ vlan_configs_body_common()
atf_check -s exit:0 -e match:'Invalid argument' \
rump.ifconfig vlan0 mtu 41
atf_check -s exit:0 rump.ifconfig vlan0 -vlanif
+
+ atf_check -s exit:0 rump.ifconfig vlan1 create
+ atf_check -s exit:0 rump.ifconfig vlan0 vlan 10 vlanif shmif0
+ atf_check -s not-exit:0 -e match:'File exists' \
+ rump.ifconfig vlan1 vlan 10 vlanif shmif0
+ atf_check -s exit:0 rump.ifconfig vlan0 -vlanif
}
atf_test_case vlan_configs cleanup