doc/SystemTap_Beginners_Guide/testsuite/systemtap.base/overcatcher.exp
raw| 1 | # make sure that we don't overcatch -- return and next should be able to break |
| 2 | # out of a try/catch block. PR11664 |
| 3 | |
| 4 | set test "overcatcher" |
| 5 | set ::result_string {return |
| 6 | next |
| 7 | } |
| 8 | |
| 9 | foreach runtime [get_runtime_list] { |
| 10 | if {$runtime != ""} { |
| 11 | stap_run_exact "$test ($runtime)" $srcdir/$subdir/$test.stp \ |
| 12 | --runtime=$runtime |
| 13 | } else { |
| 14 | stap_run_exact $test $srcdir/$subdir/$test.stp |
| 15 | } |
| 16 | } |