]> Sergey Matveev's repositories - nnn.git/commitdiff
Spawn a program that segfaults for testing
authorlostd <lostd@2f30.org>
Mon, 26 Jan 2015 20:48:47 +0000 (22:48 +0200)
committerlostd <lostd@2f30.org>
Mon, 26 Jan 2015 20:49:09 +0000 (22:49 +0200)
mktest.sh

index 6a6b6505e785184cd6b1846d21c020082d6191b4..1af7a6eeb76f98e9f1aababcb5f98ba6d1fde5be 100644 (file)
--- 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