Przeglądaj źródła

Spawn a program that segfaults for testing

master
lostd 9 lat temu
rodzic
commit
892c7c850a
1 zmienionych plików z 3 dodań i 0 usunięć
  1. +3
    -0
      mktest.sh

+ 3
- 0
mktest.sh Wyświetl plik

@@ -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

Ładowanie…
Anuluj
Zapisz