Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/net/net Check if tests surely failed with TTL exceeded
details: https://anonhg.NetBSD.org/src/rev/0b1c2110a7bb
branches: trunk
changeset: 338637:0b1c2110a7bb
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Tue Jun 02 07:32:50 2015 +0000
description:
Check if tests surely failed with TTL exceeded
diffstat:
tests/net/net/t_forwarding.sh | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (29 lines):
diff -r b0c50cc3b1a5 -r 0b1c2110a7bb tests/net/net/t_forwarding.sh
--- a/tests/net/net/t_forwarding.sh Tue Jun 02 05:54:23 2015 +0000
+++ b/tests/net/net/t_forwarding.sh Tue Jun 02 07:32:50 2015 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: t_forwarding.sh,v 1.4 2015/05/29 02:06:46 ozaki-r Exp $
+# $NetBSD: t_forwarding.sh,v 1.5 2015/06/02 07:32:50 ozaki-r Exp $
#
# Copyright (c) 2015 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -279,7 +279,8 @@
export RUMP_SERVER=$SOCKSRC
$DEBUG && rump.ifconfig -v shmif0
atf_check -s exit:0 -o ignore rump.ping -q -n -w $TIMEOUT -c 1 -T 1 $IP4SRCGW
- atf_check -s not-exit:0 -o ignore rump.ping -q -n -w $TIMEOUT -c 1 -T 1 $IP4DST
+ atf_check -s not-exit:0 -o match:'Time To Live exceeded' \
+ rump.ping -v -n -w $TIMEOUT -c 1 -T 1 $IP4DST
atf_check -s exit:0 -o ignore rump.ping -q -n -w $TIMEOUT -c 1 -T 2 $IP4DST
$DEBUG && rump.ifconfig -v shmif0
}
@@ -319,7 +320,8 @@
$DEBUG && rump.ifconfig -v shmif0
export LD_PRELOAD=/usr/lib/librumphijack.so
atf_check -s exit:0 -o ignore ping6 -q -n -c 1 -h 1 -X $TIMEOUT $IP6SRCGW
- atf_check -s not-exit:0 -o ignore ping6 -q -n -c 1 -h 1 -X $TIMEOUT $IP6DST
+ atf_check -s not-exit:0 -o match:'Time to live exceeded' \
+ ping6 -v -n -c 1 -h 1 -X $TIMEOUT $IP6DST
atf_check -s exit:0 -o ignore ping6 -q -n -c 1 -h 2 -X $TIMEOUT $IP6DST
unset LD_PRELOAD
$DEBUG && rump.ifconfig -v shmif0
Home |
Main Index |
Thread Index |
Old Index