summaryrefslogtreecommitdiff
path: root/regress/sys
diff options
context:
space:
mode:
authorDavid Krause <david@cvs.openbsd.org>2004-03-02 07:07:35 +0000
committerDavid Krause <david@cvs.openbsd.org>2004-03-02 07:07:35 +0000
commit263837a88150914220c68548cd10179879b35fcb (patch)
tree0668488835c120429339e6b227b26cc5b549b1ab /regress/sys
parente64aa016322fe99b6337d3521475fea5c58830c6 (diff)
skip test if machdep.userldt sysctl is not enabled
help from and ok tedu@
Diffstat (limited to 'regress/sys')
-rw-r--r--regress/sys/arch/i386/ldt/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/regress/sys/arch/i386/ldt/Makefile b/regress/sys/arch/i386/ldt/Makefile
index 78528bd88a6..6d98c5a12f1 100644
--- a/regress/sys/arch/i386/ldt/Makefile
+++ b/regress/sys/arch/i386/ldt/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.4 2002/09/02 20:01:43 avsm Exp $
+# $OpenBSD: Makefile,v 1.5 2004/03/02 07:07:34 david Exp $
# $NetBSD: Makefile,v 1.3 1995/04/20 22:42:19 cgd Exp $
#
# C Optimizer (-O) breaks this program - don't use !!
@@ -8,7 +8,9 @@ PROG= testldt
DPADD+= ${LIBARCH}
LDADD+= -li386
-.if ${MACHINE_ARCH} != "i386"
+USERLDT!=sysctl -n machdep.userldt
+
+.if ${MACHINE_ARCH} != "i386" || $(USERLDT) == 0
REGRESS_SKIP="yes"
.endif