| 1 |
# test of histogram with interval too small |
| 2 |
|
| 3 |
set test "linear_bad" |
| 4 |
|
| 5 |
if {![installtest_p]} { untested $test; return } |
| 6 |
|
| 7 |
set script $srcdir/$subdir/$test.stp |
| 8 |
foreach runtime [get_runtime_list] { |
| 9 |
set ok 0 |
| 10 |
set testname $test |
| 11 |
if {$runtime != ""} { |
| 12 |
spawn stap -DMAXACTION=10000 --runtime=$runtime $script |
| 13 |
lappend testname "($runtime)" |
| 14 |
} else { |
| 15 |
spawn stap -DMAXACTION=10000 $script |
| 16 |
} |
| 17 |
|
| 18 |
expect { |
| 19 |
-timeout 150 |
| 20 |
"WARNING: histogram: Number of buckets" { |
| 21 |
incr ok |
| 22 |
exp_continue |
| 23 |
} |
| 24 |
eof { } |
| 25 |
} |
| 26 |
catch close |
| 27 |
wait |
| 28 |
|
| 29 |
if {$ok == 1} { |
| 30 |
pass $testname |
| 31 |
} else { |
| 32 |
fail $testname |
| 33 |
} |
| 34 |
} |