Module Name: src
Committed By: ozaki-r
Date: Tue Sep 15 09:51:01 UTC 2015
Modified Files:
src/tests/net/if: t_ifconfig.sh
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/tests/net/if/t_ifconfig.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/t_ifconfig.sh
diff -u src/tests/net/if/t_ifconfig.sh:1.2 src/tests/net/if/t_ifconfig.sh:1.3
--- src/tests/net/if/t_ifconfig.sh:1.2 Thu Sep 3 10:22:52 2015
+++ src/tests/net/if/t_ifconfig.sh Tue Sep 15 09:51:01 2015
@@ -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 @@ options_body()
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