summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.maps/linear_bad.exp
blob: 8aa88bb2025fc79fcf0c9308584c8689f66985c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# test of histogram with interval too small

set test "linear_bad"

if {![installtest_p]} { untested $test; return }

set ok 0

spawn stap -DMAXACTION=10000 $srcdir/$subdir/$test.stp
expect {
    -timeout 150
    "WARNING: histogram: Interval is too small." {
	incr ok
	exp_continue
    }
    eof { }
}
catch close
wait

if {$ok == 1} { 
    pass $test 
} else { 
    fail $test 
}