summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
Diffstat (limited to 'share')
-rw-r--r--share/mk/bsd.regress.mk10
1 files changed, 9 insertions, 1 deletions
diff --git a/share/mk/bsd.regress.mk b/share/mk/bsd.regress.mk
index a6395cf1dc7..ff70d71a5ce 100644
--- a/share/mk/bsd.regress.mk
+++ b/share/mk/bsd.regress.mk
@@ -1,4 +1,4 @@
-# $OpenBSD: bsd.regress.mk,v 1.8 2002/01/03 16:54:38 brad Exp $
+# $OpenBSD: bsd.regress.mk,v 1.9 2002/02/17 01:10:15 marc Exp $
# No man pages for regression tests.
NOMAN=
@@ -38,6 +38,14 @@ REGRESSSKIPSLOW?=no
REGRESSSKIPTARGETS+=${REGRESSSLOWTARGETS}
.endif
+.if defined(REGRESSROOTTARGETS)
+ROOTUSER!=id -g
+SUDO?=
+. if (${ROOTUSER} != 0) && empty(SUDO)
+REGRESSSKIPTARGETS+=${REGRESSROOTTARGETS}
+. endif
+.endif
+
REGRESSSKIPTARGETS?=
regress: