summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2019-08-06 20:21:37 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2019-08-06 20:21:37 +0000
commit8af1c4767cf45a0f0ea230dd021e9593b0cc6af1 (patch)
treee7fcf0234a9d48fa6fc950ca1dd1237b40ff47cf
parent988f4324273984d91891a3d4a899e2ca482405de (diff)
Use SUDO to run test as root.
-rw-r--r--regress/sys/kern/unveil/Makefile16
1 files changed, 9 insertions, 7 deletions
diff --git a/regress/sys/kern/unveil/Makefile b/regress/sys/kern/unveil/Makefile
index 22273359f0d..cc74ed78335 100644
--- a/regress/sys/kern/unveil/Makefile
+++ b/regress/sys/kern/unveil/Makefile
@@ -1,14 +1,16 @@
-# $OpenBSD: Makefile,v 1.2 2018/07/07 23:16:24 beck Exp $
+# $OpenBSD: Makefile,v 1.3 2019/08/06 20:21:36 bluhm Exp $
+
PROG= unveil_test
-SRCS+= syscalls.c
+SRCS= syscalls.c
+CFLAGS= -Wall
NOMAN= yes
+LDADD= -lutil
+DPADD= ${LIBUTIL}
-LDADD+= -lutil
-CFLAGS+= -Wall
-
-REGRESS_TARGETS+= test_normal
+REGRESS_TARGETS = test_normal
+REGRESS_ROOT_TARGETS = test_normal
test_normal: ${PROG}
- ./${PROG}
+ ${SUDO} ./${PROG}
.include <bsd.regress.mk>