summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2016-09-01 09:57:46 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2016-09-01 09:57:46 +0000
commitb117055a576a7e070802ffb7f8a8a23040be4e3f (patch)
tree93f7bb8ab4a4d70c852518215abb7ecf006fce80 /regress
parent2df81c17abe56c5ad5701b81b07a8195ec6d35b0 (diff)
Test that RTF_LOCAL routes cannot be deleted from userland.
Diffstat (limited to 'regress')
-rw-r--r--regress/sbin/route/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/regress/sbin/route/Makefile b/regress/sbin/route/Makefile
index b3ff38e90c6..b3e70aff6e1 100644
--- a/regress/sbin/route/Makefile
+++ b/regress/sbin/route/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.13 2016/08/31 11:00:15 claudio Exp $
+# $OpenBSD: Makefile,v 1.14 2016/09/01 09:57:45 mpi Exp $
RDOMAIN?= 5
@@ -321,6 +321,12 @@ rttest${n}:
${RCMD} show -inet 2>&1 | \
diff -u ${.CURDIR}/${.TARGET}.ok /dev/stdin
+# Can't delete RTF_LOCAL route
+n= 28
+RTTEST_TARGETS+:=rttest${n}
+rttest${n}:
+ ${RCMD} delete 192.0.2.1 192.0.2.1 && exit 1 || exit 0
+
REGRESS_TARGETS=netmask ${RTTEST_TARGETS}
REGRESS_ROOT_TARGETS=${REGRESS_TARGETS}
.PHONY: ${REGRESS_TARGETS}