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/0c49111c61f2
branches: trunk
changeset: 341431:0c49111c61f2
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Fri Nov 06 02:54:37 2015 +0000
description:
Improve test stability
"deprecated" flag may not be reflected immediately. We need to add some
delay before checking the result.
diffstat:
tests/net/if/t_ifconfig.sh | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diffs (28 lines):
diff -r 096d41286a73 -r 0c49111c61f2 tests/net/if/t_ifconfig.sh
--- a/tests/net/if/t_ifconfig.sh Fri Nov 06 02:26:42 2015 +0000
+++ b/tests/net/if/t_ifconfig.sh Fri Nov 06 02:54:37 2015 +0000
@@ -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_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 @@
# 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
Home |
Main Index |
Thread Index |
Old Index