REGRESS_ROOT_TARGTES and remove ${SUDO} from kq-pty-2.
kq-tun also needs root, but it isn't run.
discussed with and ok millert
-# $OpenBSD: Makefile,v 1.29 2022/03/29 19:04:19 millert Exp $
+# $OpenBSD: Makefile,v 1.30 2022/03/29 19:34:37 tb Exp $
PROG= kqueue-test
CFLAGS+=-Wall
kq-pty-1: ${PROG}
${SUDO} ./${PROG} -T1
kq-pty-2: ${PROG}
- ${SUDO} ./${PROG} -T2
+ ./${PROG} -T2
kq-signal: ${PROG}
./${PROG} -s
kq-fdpass: ${PROG}
REGRESS_TARGETS=${TESTS}
# kq-tun broke at some point, apparently from a change in tun routing
-REGRESS_ROOT_TARGETS=${REGRESS_TARGETS}
+REGRESS_ROOT_TARGETS=kq-pty-1
.PHONY: ${REGRESS_TARGETS}
.include <bsd.regress.mk>