Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/net/route Improve stability of route_flags_xresolve tests
details: https://anonhg.NetBSD.org/src/rev/963e1914f7c8
branches: trunk
changeset: 338612:963e1914f7c8
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Mon Jun 01 01:36:30 2015 +0000
description:
Improve stability of route_flags_xresolve tests
Insert delays to give route monitor a chance to complete its work.
diffstat:
tests/net/route/t_flags.sh | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r a806e2ae8769 -r 963e1914f7c8 tests/net/route/t_flags.sh
--- a/tests/net/route/t_flags.sh Mon Jun 01 00:15:07 2015 +0000
+++ b/tests/net/route/t_flags.sh Mon Jun 01 01:36:30 2015 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: t_flags.sh,v 1.2 2015/05/20 01:30:42 ozaki-r Exp $
+# $NetBSD: t_flags.sh,v 1.3 2015/06/01 01:36:30 ozaki-r Exp $
#
# Copyright (c) 2015 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -341,9 +341,15 @@
rump.route -n monitor > ./mon.log &
pid=$!
+ # Give route monitor a chance to setup a routing socket
+ sleep 1
+
atf_check -s exit:0 -o ignore rump.ping -n -w 1 -c 1 $ip
$DEBUG && rump.netstat -rn -f inet
- $DEBUG && cat ./mon.log
+
+ # Give route monitor a chance to output a routing message
+ sleep 1
+ cat ./mon.log
atf_check -s exit:0 grep -q $rtm ./mon.log
Home |
Main Index |
Thread Index |
Old Index