summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.maps/linear_neg.exp
blob: fcd1c4dd4a5189c42045400283102c009a9cb819 (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 negative interval

set test "linear_neg"

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

set ok 0

spawn stap -DMAXACTION=10000 $srcdir/$subdir/$test.stp
expect {
    -timeout 150
    "saw: operator \'-\' at *linear_neg.stp" {
	incr ok
	exp_continue
    }
    eof { }
}
catch close
wait

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