summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormpi <mpi@openbsd.org>2017-07-27 12:44:07 +0000
committermpi <mpi@openbsd.org>2017-07-27 12:44:07 +0000
commit5dfd0532f5fb5a14b1041c1f224495de44b14d0b (patch)
tree37f425df6c3cf79cd0346034b2aae8646826fedc
parentMark the invalid memory location as volatile, otherwise clang would (diff)
downloadwireguard-openbsd-5dfd0532f5fb5a14b1041c1f224495de44b14d0b.tar.xz
wireguard-openbsd-5dfd0532f5fb5a14b1041c1f224495de44b14d0b.zip
Work around for rttest8 that some times fail due to a reference count
race in the kernel.
-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