These regress test expect coredumps as an effect of the test so run
authorclaudio <claudio@openbsd.org>
Tue, 9 Feb 2021 16:58:00 +0000 (16:58 +0000)
committerclaudio <claudio@openbsd.org>
Tue, 9 Feb 2021 16:58:00 +0000 (16:58 +0000)
the tests with ulimit -c unlimited to make sure coredumps are written.
OK bluhm@ deraadt@

regress/sys/kern/syscall_segment/lib/Makefile
regress/sys/kern/syscall_segment/main/Makefile

index ec635d9..1b32cbe 100644 (file)
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.3 2020/10/16 21:34:59 bluhm Exp $
+# $OpenBSD: Makefile,v 1.4 2021/02/09 16:58:00 claudio Exp $
 
 PROG=  syscall_library
 .if ${.CURDIR} == ${.OBJDIR}
@@ -10,7 +10,7 @@ LDADD+=       -L${LIBDIR} -lgadgetsyscall
 
 run-regress-${PROG}: ${PROG}
        rm -f ${PROG}.core
-       ! LD_LIBRARY_PATH=${LIBDIR} ./${PROG}
+       ulimit -c unlimited && ! LD_LIBRARY_PATH=${LIBDIR} ./${PROG}
        if [ ! -e ${PROG}.core ]; then echo "No coredump"; false; fi
 
 .include <bsd.regress.mk>
index b3ab84a..70ea9bf 100644 (file)
@@ -1,10 +1,10 @@
-# $OpenBSD: Makefile,v 1.3 2020/10/16 21:34:59 bluhm Exp $
+# $OpenBSD: Makefile,v 1.4 2021/02/09 16:58:00 claudio Exp $
 
 PROG=  syscall_main
 
 run-regress-${PROG}: ${PROG}
        rm -f ${PROG}.core
-       ! ./${PROG}
+       ulimit -c unlimited && ! ./${PROG}
        if [ ! -e ${PROG}.core ]; then echo "No coredump"; false; fi
 
 .include <bsd.regress.mk>