Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/net/net Add timeout to ping6 positive tests too



details:   https://anonhg.NetBSD.org/src/rev/13fa9f27e2b1
branches:  trunk
changeset: 808622:13fa9f27e2b1
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Wed May 27 01:12:04 2015 +0000

description:
Add timeout to ping6 positive tests too

For when they fail.

diffstat:

 tests/net/net/t_forwarding.sh |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r 4c8a647c12a8 -r 13fa9f27e2b1 tests/net/net/t_forwarding.sh
--- a/tests/net/net/t_forwarding.sh     Wed May 27 00:16:46 2015 +0000
+++ b/tests/net/net/t_forwarding.sh     Wed May 27 01:12:04 2015 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: t_forwarding.sh,v 1.2 2015/05/16 14:29:37 ozaki-r Exp $
+#      $NetBSD: t_forwarding.sh,v 1.3 2015/05/27 01:12:04 ozaki-r Exp $
 #
 # Copyright (c) 2015 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -94,7 +94,7 @@
        atf_check -s exit:0 -o match:shmif0 rump.ifconfig
        if [ $mode = "ipv6" ]; then
                export LD_PRELOAD=/usr/lib/librumphijack.so
-               atf_check -s exit:0 -o ignore ping6 -n -c 1 ${addr}
+               atf_check -s exit:0 -o ignore ping6 -n -c 1 -X 1 ${addr}
                unset LD_PRELOAD
        else
                atf_check -s exit:0 -o ignore rump.ping -n -w 1 -c 1 ${addr}
@@ -178,8 +178,8 @@
        atf_check -s exit:0 -o match:shmif1 rump.ifconfig
 
        export LD_PRELOAD=/usr/lib/librumphijack.so
-       atf_check -s exit:0 -o ignore ping6 -n -c 1 ${IP6SRCGW}
-       atf_check -s exit:0 -o ignore ping6 -n -c 1 ${IP6DSTGW}
+       atf_check -s exit:0 -o ignore ping6 -n -c 1 -X 1 ${IP6SRCGW}
+       atf_check -s exit:0 -o ignore ping6 -n -c 1 -X 1 ${IP6DSTGW}
        unset LD_PRELOAD
 }
 



Home | Main Index | Thread Index | Old Index