summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorAnton Lindqvist <anton@cvs.openbsd.org>2023-07-10 17:46:04 +0000
committerAnton Lindqvist <anton@cvs.openbsd.org>2023-07-10 17:46:04 +0000
commite89c088e17ca7499536e71eded7c75fa59b06fcb (patch)
tree3af8a577d805697132394ae6f81098bf7708011d /regress
parent85843a804657fc12854e801a1f5356b3db8659cf (diff)
Infer the timeout from the environment, with sane defaults. Should
hopefully make these tests more stable on my slow^W regress machines. ok sashan@
Diffstat (limited to 'regress')
-rw-r--r--regress/sys/net/pf_trans/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/regress/sys/net/pf_trans/Makefile b/regress/sys/net/pf_trans/Makefile
index 9bcbc02142b..bc38214a660 100644
--- a/regress/sys/net/pf_trans/Makefile
+++ b/regress/sys/net/pf_trans/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.1 2023/07/06 19:55:57 sashan Exp $
+# $OpenBSD: Makefile,v 1.2 2023/07/10 17:46:03 anton Exp $
PROGS+= dev-limit
PROGS+= iocmd-limit
@@ -8,6 +8,7 @@ CFLAGS+= -Wall
REGRESS_ROOT_TARGETS= run-regress-dev-limit \
run-regress-iocmd-limit
+TIMEOUT?= 10
#
# Create 2048 processes. Each child process will attempt
@@ -16,7 +17,7 @@ REGRESS_ROOT_TARGETS= run-regress-dev-limit \
# There should be 1023 children, which could open /dev/pf.
#
run-regress-dev-limit:
- ${SUDO} ./dev-limit -c 2048 -s 1023 -t 10
+ ${SUDO} ./dev-limit -c 2048 -s 1023 -t ${TIMEOUT}
#
# Open 1024 tickets for DIOCGETRULES without closing them.