summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.maps/linear_0.exp
blob: 8e6952a75f846ebcd5e792e91c58af1a04fe5ddc (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 = 0 (error)

set test "linear_0"

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

set ok 0

spawn stap -DMAXACTION=10000 $srcdir/$subdir/$test.stp
expect {
    -timeout 150
    "WARNING: histogram: interval cannot be zero." { 
	incr ok
	exp_continue
    }
    eof { }
}
catch close
wait

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