Source-Changes-HG archive

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

[src/trunk]: src/tests/net/arp Make checks strict



details:   https://anonhg.NetBSD.org/src/rev/3ff1d4a72b7c
branches:  trunk
changeset: 342003:3ff1d4a72b7c
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Wed Dec 02 06:05:14 2015 +0000

description:
Make checks strict

rump.arp should fail with File exists (EEXIST).

diffstat:

 tests/net/arp/t_arp.sh |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r c102e9d5074a -r 3ff1d4a72b7c tests/net/arp/t_arp.sh
--- a/tests/net/arp/t_arp.sh    Wed Dec 02 04:17:25 2015 +0000
+++ b/tests/net/arp/t_arp.sh    Wed Dec 02 06:05:14 2015 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: t_arp.sh,v 1.9 2015/08/31 08:08:20 ozaki-r Exp $
+#      $NetBSD: t_arp.sh,v 1.10 2015/12/02 06:05:14 ozaki-r Exp $
 #
 # Copyright (c) 2015 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -285,7 +285,8 @@
        export RUMP_SERVER=$SOCKSRC
 
        # Cannot overwrite a permanent cache
-       atf_check -s not-exit:0 -e ignore rump.arp -s $IP4SRC b2:a0:20:00:00:ff
+       atf_check -s not-exit:0 -e match:'File exists' \
+           rump.arp -s $IP4SRC b2:a0:20:00:00:ff
        $DEBUG && rump.arp -n -a
 
        atf_check -s exit:0 -o ignore rump.ping -n -w $TIMEOUT -c 1 $IP4DST
@@ -301,7 +302,8 @@
        atf_check -s exit:0 -o match:'b2:a0:20:00:00:10' rump.arp -n 10.0.1.10
        atf_check -s exit:0 -o not-match:'permanent' rump.arp -n 10.0.1.10
        # Cannot overwrite a temp cache
-       atf_check -s not-exit:0 -e ignore rump.arp -s 10.0.1.10 b2:a0:20:00:00:ff
+       atf_check -s not-exit:0 -e match:'File exists' \
+           rump.arp -s 10.0.1.10 b2:a0:20:00:00:ff
        $DEBUG && rump.arp -n -a
 
        return 0



Home | Main Index | Thread Index | Old Index