doc/SystemTap_Beginners_Guide/testsuite/systemtap.base/div0.exp
raw| 1 | # Simple function to test that systemtap divide by 0 doesn't kill the machine |
| 2 | |
| 3 | set test "div0" |
| 4 | |
| 5 | set output_string {ERROR: division by 0 near[^\r\n]+\r\n} |
| 6 | |
| 7 | foreach runtime [get_runtime_list] { |
| 8 | if {$runtime != ""} { |
| 9 | stap_run $test no_load $output_string \ |
| 10 | --runtime=$runtime $srcdir/$subdir/$test.stp |
| 11 | } else { |
| 12 | stap_run $test no_load $output_string $srcdir/$subdir/$test.stp |
| 13 | |
| 14 | } |
| 15 | } |