These regress tests expect coredumps to be written so run them with
authorclaudio <claudio@openbsd.org>
Tue, 9 Feb 2021 17:00:30 +0000 (17:00 +0000)
committerclaudio <claudio@openbsd.org>
Tue, 9 Feb 2021 17:00:30 +0000 (17:00 +0000)
ulimit -c unlimited. Also simplify the logic a bit as requested by bluhm@.
OK bluhm@ deraadt@

regress/sys/kern/stackpivot/pagefault/Makefile
regress/sys/kern/stackpivot/syscall/Makefile

index a374d55..e5b2d2b 100644 (file)
@@ -3,7 +3,7 @@ PROG=  stackpivot
 
 run-regress-${PROG}: ${PROG}
        rm -f ./${PROG}.core
-       if ./${PROG}; then false; else true; fi
+       ulimit -c unlimited && ! ./${PROG}
        if [ ! -e ./${PROG}.core ]; then echo "No coredump"; false; fi
 
 .include <bsd.regress.mk>
index a374d55..e5b2d2b 100644 (file)
@@ -3,7 +3,7 @@ PROG=  stackpivot
 
 run-regress-${PROG}: ${PROG}
        rm -f ./${PROG}.core
-       if ./${PROG}; then false; else true; fi
+       ulimit -c unlimited && ! ./${PROG}
        if [ ! -e ./${PROG}.core ]; then echo "No coredump"; false; fi
 
 .include <bsd.regress.mk>