doc/SystemTap_Beginners_Guide/testsuite/systemtap.base/be_loaded.exp
raw| 1 | # Simple test that begin/end probes work with a command loaded |
| 2 | |
| 3 | set test "be_loaded" |
| 4 | |
| 5 | set ::result_string {begin |
| 6 | end} |
| 7 | |
| 8 | set script $srcdir/$subdir/$test.stp |
| 9 | |
| 10 | foreach runtime [get_runtime_list] { |
| 11 | if {$runtime != ""} { |
| 12 | stap_run3 "$test ($runtime)" $script --runtime=$runtime -c true |
| 13 | } else { |
| 14 | stap_run3 $test $script -c true |
| 15 | } |
| 16 | } |