Message ID | 2D016F5BA44C744783BA96B1D3EBC5BD13E91636@IRSMSX102.ger.corp.intel.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/lib/tests/igt_segfault.c b/lib/tests/igt_segfault.c index b420b1a..bc7641d 100644 --- a/lib/tests/igt_segfault.c +++ b/lib/tests/igt_segfault.c @@ -57,11 +57,15 @@ bool runc; char test[] = "test"; char *argv_run[] = { test }; +static void crashme(void) +{ + raise(SIGSEGV); +} + static int do_fork(void) { int pid, status; int argc; - void (*crashme)(void) = NULL; switch (pid = fork()) { case -1: