From 8ecca5bae4ccdd9af021ba6af3fa5c8bd26c34be Mon Sep 17 00:00:00 2001 From: hunt Date: Fri, 6 Jul 2007 19:03:12 +0000 Subject: 2007-07-06 Martin Hunt * systemtap.maps/linear*: New tests of linear histograms. --- testsuite/systemtap.maps/linear_0.exp | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 testsuite/systemtap.maps/linear_0.exp (limited to 'testsuite/systemtap.maps/linear_0.exp') diff --git a/testsuite/systemtap.maps/linear_0.exp b/testsuite/systemtap.maps/linear_0.exp new file mode 100644 index 00000000..8e6952a7 --- /dev/null +++ b/testsuite/systemtap.maps/linear_0.exp @@ -0,0 +1,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 +} -- cgit