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 Add a test case for duplicated VLAN ID.
details: https://anonhg.NetBSD.org/src/rev/308d754a193b
branches: trunk
changeset: 356761:308d754a193b
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Wed Oct 11 08:10:53 2017 +0000
description:
Add a test case for duplicated VLAN ID.
diffstat:
tests/net/if_vlan/t_vlan.sh | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diffs (22 lines):
diff -r 54d45f59a614 -r 308d754a193b tests/net/if_vlan/t_vlan.sh
--- a/tests/net/if_vlan/t_vlan.sh Wed Oct 11 08:10:00 2017 +0000
+++ b/tests/net/if_vlan/t_vlan.sh Wed Oct 11 08:10:53 2017 +0000
@@ -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 @@
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
Home |
Main Index |
Thread Index |
Old Index