summaryrefslogtreecommitdiff
path: root/scripts/dev/quit_segfault_test.sh
blob: 389f125b9ea4c44621bfb752e11776c2eda46b78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env bash

[[ $PWD == */scripts ]] && cd ..

echo > crash.log
while :; do
    exit=0
    while (( exit == 0 )); do
        duration=$(( RANDOM % 10000 ))
        python3 -m qutebrowser --debug ":later $duration quit" http://www.heise.de/
        exit=$?
    done
    echo "$(date) $exit $duration" >> crash.log
done