Debian Codegraph @

doc/SystemTap_Beginners_Guide/testsuite/systemtap.base/bz1074541.exp

raw
1 set test "./bz1074541"
2
3 for {set x 0} {$x<20} {incr x} {
4 verbose -log "Attempt no. ${x} to crash the kernel..."
5 spawn stap -ge "probe netfilter.ipv4.local_in { \$verdict = nf_drop; exit() }" -c "ping -qfc 1000 127.0.0.1"
6 catch { close }; catch { wait }
7 }
8
9 # If the kernel didn't crash, the testcase succeeded.
10 pass "$test"
11