From: claudio Date: Tue, 9 Feb 2021 17:00:30 +0000 (+0000) Subject: These regress tests expect coredumps to be written so run them with X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=b99ef4df7fac99f3475b694d6cd4990521c99ae6;p=openbsd These regress tests expect coredumps to be written so run them with ulimit -c unlimited. Also simplify the logic a bit as requested by bluhm@. OK bluhm@ deraadt@ --- diff --git a/regress/sys/kern/stackpivot/pagefault/Makefile b/regress/sys/kern/stackpivot/pagefault/Makefile index a374d550960..e5b2d2bca0e 100644 --- a/regress/sys/kern/stackpivot/pagefault/Makefile +++ b/regress/sys/kern/stackpivot/pagefault/Makefile @@ -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 diff --git a/regress/sys/kern/stackpivot/syscall/Makefile b/regress/sys/kern/stackpivot/syscall/Makefile index a374d550960..e5b2d2bca0e 100644 --- a/regress/sys/kern/stackpivot/syscall/Makefile +++ b/regress/sys/kern/stackpivot/syscall/Makefile @@ -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