Module Name: src
Committed By: ozaki-r
Date: Fri Nov 6 02:54:37 UTC 2015
Modified Files:
src/tests/net/if: t_ifconfig.sh
Log Message:
Improve test stability
"deprecated" flag may not be reflected immediately. We need to add some
delay before checking the result.
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 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.4 src/tests/net/if/t_ifconfig.sh:1.5
--- src/tests/net/if/t_ifconfig.sh:1.4 Thu Nov 5 02:57:36 2015
+++ src/tests/net/if/t_ifconfig.sh Fri Nov 6 02:54:37 2015
@@ -1,4 +1,4 @@
-# $NetBSD: t_ifconfig.sh,v 1.4 2015/11/05 02:57:36 ozaki-r Exp $
+# $NetBSD: t_ifconfig.sh,v 1.5 2015/11/06 02:54:37 ozaki-r Exp $
#
# Copyright (c) 2015 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -192,6 +192,8 @@ parameters_head()
parameters_body()
{
+ local interval=
+
atf_check -s exit:0 rump_server ${RUMP_FLAGS} ${RUMP_SERVER1}
atf_check -s exit:0 rump_server ${RUMP_FLAGS} ${RUMP_SERVER2}
@@ -276,6 +278,9 @@ parameters_body()
# deprecated
atf_check -s exit:0 rump.ifconfig shmif0 inet6 fc00::3 deprecated
+ # Not deprecated immediately. Need to wait nd6_timer that does it is scheduled.
+ interval=$(sysctl -n net.inet6.icmp6.nd6_prune)
+ atf_check -s exit:0 sleep $((interval + 1))
atf_check -s exit:0 -o match:'fc00::3.+deprecated' rump.ifconfig shmif0 inet6
atf_check -s exit:0 rump.ifconfig shmif0 inet6 fc00::3 -deprecated
atf_check -s exit:0 -o not-match:'fc00::3.+deprecated' rump.ifconfig shmif0 inet6