Module Name:    src
Committed By:   ozaki-r
Date:           Tue Jun  2 07:32:50 UTC 2015

Modified Files:
        src/tests/net/net: t_forwarding.sh

Log Message:
Check if tests surely failed with TTL exceeded


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/tests/net/net/t_forwarding.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/net/t_forwarding.sh
diff -u src/tests/net/net/t_forwarding.sh:1.4 src/tests/net/net/t_forwarding.sh:1.5
--- src/tests/net/net/t_forwarding.sh:1.4	Fri May 29 02:06:46 2015
+++ src/tests/net/net/t_forwarding.sh	Tue Jun  2 07:32:50 2015
@@ -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 @@ test_ttl()
 	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 @@ test_hoplimit()
 	$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

Reply via email to