summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.base/timers.exp
blob: 9cca0625925b06cc7f0ae712a4307a753541b195 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Test the functionality of the various timer.* probes.

set test "timers"

# A simple load that give the timers a chance to run
proc sleep_ten_secs {} {
    after 10000;
    return 0;
}

#check to see whether get the marker indicating the probe is loaded and running
#should check to see whether exited for some reason
#should be error is something else is printed.
set output_string "(\\w+ = \\d+\r\n){7}${all_pass_string}(WARNING.*skipped.*)?"

stap_run $srcdir/$subdir/$test.stp sleep_ten_secs $output_string