initial import
[ICEs.git] / 155903 / doit
1 #!/bin/bash -x
2
3 ulimit -c unlimited
4
5 bin=./core-test
6 gdb=i686-pc-linux-gnu-gdb
7
8 i=0
9 x=0
10 while true ; do
11 ${bin}
12 if ${gdb} ${bin} core < /dev/null 2>&1 | grep -q 'not a core dump'
13 then
14 ((++x))
15 fi
16 ((++i))
17 done
18 echo $x