Module Name:    src
Committed By:   ozaki-r
Date:           Wed Dec  2 06:05:14 UTC 2015

Modified Files:
        src/tests/net/arp: t_arp.sh

Log Message:
Make checks strict

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


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/tests/net/arp/t_arp.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/arp/t_arp.sh
diff -u src/tests/net/arp/t_arp.sh:1.9 src/tests/net/arp/t_arp.sh:1.10
--- src/tests/net/arp/t_arp.sh:1.9	Mon Aug 31 08:08:20 2015
+++ src/tests/net/arp/t_arp.sh	Wed Dec  2 06:05:14 2015
@@ -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 @@ cache_overwriting_body()
 	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 @@ cache_overwriting_body()
 	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

Reply via email to