From 340fd243a168d881dd80b45f2ffb424287db8b7e Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Tue, 13 Feb 2007 20:09:10 +0100 Subject: [PATCH] [PATCH] Make fio_assert() core dump the job Signed-off-by: Jens Axboe --- fio.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fio.h b/fio.h index c15232a2..b420db5a 100644 --- a/fio.h +++ b/fio.h @@ -672,10 +672,11 @@ extern void close_ioengine(struct thread_data *); #define fio_assert(td, cond) do { \ if (!(cond)) { \ + int *__foo = NULL; \ fprintf(stderr, "file:%s:%d, assert %s failed\n", __FILE__, __LINE__, #cond); \ (td)->runstate = TD_EXITED; \ (td)->error = EFAULT; \ - exit(0); \ + *__foo = 0; \ } \ } while (0) -- 2.25.1