summaryrefslogtreecommitdiff
path: root/regress/sbin/route
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2017-07-27 12:44:08 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2017-07-27 12:44:08 +0000
commit190a5433b650c07877238d2ae9e1434e76664f44 (patch)
treed698337f595e38ade579ced55ad0226ed981f396 /regress/sbin/route
parent1b98b6865ded85a775fbf23087c02195f5d130c7 (diff)
Work around for rttest8 that some times fail due to a reference count
race in the kernel.
Diffstat (limited to 'regress/sbin/route')
-rw-r--r--regress/sbin/route/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/regress/sbin/route/Makefile b/regress/sbin/route/Makefile
index 269ce8751b4..9a6457822c3 100644
--- a/regress/sbin/route/Makefile
+++ b/regress/sbin/route/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.16 2017/07/07 23:55:21 bluhm Exp $
+# $OpenBSD: Makefile,v 1.17 2017/07/27 12:44:07 mpi Exp $
RDOMAIN?= 5
@@ -120,6 +120,8 @@ rttest${n}:
${RCMD} add -priority 18 10.8.1/24 192.0.2.3
${SUDO} ifconfig lo10002 down
${RCMD} add -priority 17 10.8.1/24 192.0.2.2 && exit 1 || exit 0
+ @# Work around a race that mess up the route reference counts
+ @sleep .1
${RCMD} show -inet 2>&1 | \
diff -u ${.CURDIR}/${.TARGET}.ok /dev/stdin