Module Name:    src
Committed By:   kre
Date:           Sat Oct  1 22:15:04 UTC 2016

Modified Files:
        src/tests/net/if: t_ifconfig.sh

Log Message:
Don't expect ping to complain about sending to a local address
assigned to an interface that's down - instead it just attempts
to send, and the interface never responds (as it would if it were
a remote address).


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/tests/net/if/t_ifconfig.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/if/t_ifconfig.sh
diff -u src/tests/net/if/t_ifconfig.sh:1.13 src/tests/net/if/t_ifconfig.sh:1.14
--- src/tests/net/if/t_ifconfig.sh:1.13	Sat Oct  1 15:35:22 2016
+++ src/tests/net/if/t_ifconfig.sh	Sat Oct  1 22:15:04 2016
@@ -1,4 +1,4 @@
-# $NetBSD: t_ifconfig.sh,v 1.13 2016/10/01 15:35:22 roy Exp $
+# $NetBSD: t_ifconfig.sh,v 1.14 2016/10/01 22:15:04 kre Exp $
 #
 # Copyright (c) 2015 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -230,7 +230,7 @@ ifconfig_parameters_body()
 	    rump.ifconfig shmif0
 	# down, up
 	atf_check -s exit:0 rump.ifconfig shmif0 down
-	atf_check -s ignore -o ignore -e match:'down' rump.ping -c 1 \
+	atf_check -s not-exit:0 -o ignore -e ignore rump.ping -c 1 \
 	    -w $TIMEOUT -n 192.168.0.2
 	atf_check -s exit:0 rump.ifconfig shmif0 up
 	atf_check -s exit:0 rump.ifconfig -w 10

Reply via email to