commit 892c7c850a27331f6debb0d5968282d0e3278592
parent ad76a7be57dfa5eecf192594e49711335a20ac84
Author: lostd <lostd@2f30.org>
Date: Mon, 26 Jan 2015 22:48:47 +0200
Spawn a program that segfaults for testing
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git 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