summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.maps/linear_bad.exp
blob: d99fd16c698def047038ad1bc618e6ed646554cf (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: Number of buckets" {
	incr ok
	exp_continue
    }
    eof { }
}
catch close
wait

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