Source-Changes-HG archive

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

[src/trunk]: src/tests/net/if Don't expect ping to complain about sending to ...



details:   https://anonhg.NetBSD.org/src/rev/46d3bc1c51b5
branches:  trunk
changeset: 348039:46d3bc1c51b5
user:      kre <kre%NetBSD.org@localhost>
date:      Sat Oct 01 22:15:04 2016 +0000

description:
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).

diffstat:

 tests/net/if/t_ifconfig.sh |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 201513d13860 -r 46d3bc1c51b5 tests/net/if/t_ifconfig.sh
--- a/tests/net/if/t_ifconfig.sh        Sat Oct 01 21:51:52 2016 +0000
+++ b/tests/net/if/t_ifconfig.sh        Sat Oct 01 22:15:04 2016 +0000
@@ -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 @@
            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



Home | Main Index | Thread Index | Old Index