summaryrefslogtreecommitdiff
path: root/regress/sys/kern
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2021-02-09 17:00:31 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2021-02-09 17:00:31 +0000
commit8cc02c5726e9355c728a5c0cbb652817a32e91df (patch)
treeb3f5b12f33f534c9932d9e11f9e64fbdb2e5647c /regress/sys/kern
parentc2565b42daf4a4661f0ba81c8b9545d37d15be62 (diff)
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@
Diffstat (limited to 'regress/sys/kern')
-rw-r--r--regress/sys/kern/stackpivot/pagefault/Makefile2
-rw-r--r--regress/sys/kern/stackpivot/syscall/Makefile2
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 <bsd.regress.mk>
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 <bsd.regress.mk>