From b99ef4df7fac99f3475b694d6cd4990521c99ae6 Mon Sep 17 00:00:00 2001 From: claudio Date: Tue, 9 Feb 2021 17:00:30 +0000 Subject: [PATCH] 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@ --- regress/sys/kern/stackpivot/pagefault/Makefile | 2 +- regress/sys/kern/stackpivot/syscall/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 -- 2.20.1