From 892c7c850a27331f6debb0d5968282d0e3278592 Mon Sep 17 00:00:00 2001 From: lostd Date: Mon, 26 Jan 2015 22:48:47 +0200 Subject: [PATCH] Spawn a program that segfaults for testing --- mktest.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mktest.sh b/mktest.sh index 6a6b6505..1af7a6ee 100644 --- a/mktest.sh +++ b/mktest.sh @@ -20,3 +20,6 @@ mkfifo mk-fifo touch no-access && chmod 000 no-access ln -s ../normal.txt normal-dir/ln-normal.txt ln -s ../normal.txt normal-dir/ln-normal +echo 'int main(void) { *((char *)0) = 0; }' > ill.c +make ill > /dev/null +echo 'test/ill' > ill.sh