Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/net/if Improve test stability
details: https://anonhg.NetBSD.org/src/rev/c52f6990dfed
branches: trunk
changeset: 340580:c52f6990dfed
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Tue Sep 15 09:51:01 2015 +0000
description:
Improve test stability
ifconfig -a -v after ifconfig -a -z is expected to show '0 packets' for
all interface. However, shmif0 can receive packets between the two
operations. So we have to keep shmif0 down during such tests.
diffstat:
tests/net/if/t_ifconfig.sh | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (21 lines):
diff -r dbea5db4bfbe -r c52f6990dfed tests/net/if/t_ifconfig.sh
--- a/tests/net/if/t_ifconfig.sh Tue Sep 15 02:22:43 2015 +0000
+++ b/tests/net/if/t_ifconfig.sh Tue Sep 15 09:51:01 2015 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: t_ifconfig.sh,v 1.2 2015/09/03 10:22:52 ozaki-r Exp $
+# $NetBSD: t_ifconfig.sh,v 1.3 2015/09/15 09:51:01 ozaki-r Exp $
#
# Copyright (c) 2015 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -149,8 +149,11 @@
atf_check -s exit:0 -o ignore rump.ifconfig shmif0 up
atf_check -s exit:0 -o match:'0 packets' rump.ifconfig -a -v
atf_check -s exit:0 -o ignore rump.ping -c 1 localhost
+ atf_check -s exit:0 -o ignore rump.ifconfig shmif0 down
atf_check -s exit:0 -o match:'2 packets' rump.ifconfig -a -z
atf_check -s exit:0 -o not-match:'2 packets' rump.ifconfig -a -v
+ atf_check -s exit:0 -o match:'0 packets' rump.ifconfig -a -v
+ atf_check -s exit:0 -o ignore rump.ifconfig shmif0 up
# ifconfig -l [-bdsu]
# -l shows only inteface names
Home |
Main Index |
Thread Index |
Old Index