summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.maps/linear_bad.exp
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/systemtap.maps/linear_bad.exp')
-rw-r--r--testsuite/systemtap.maps/linear_bad.exp25
1 files changed, 25 insertions, 0 deletions
diff --git a/testsuite/systemtap.maps/linear_bad.exp b/testsuite/systemtap.maps/linear_bad.exp
new file mode 100644
index 00000000..8aa88bb2
--- /dev/null
+++ b/testsuite/systemtap.maps/linear_bad.exp
@@ -0,0 +1,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: Interval is too small." {
+ incr ok
+ exp_continue
+ }
+ eof { }
+}
+catch close
+wait
+
+if {$ok == 1} {
+ pass $test
+} else {
+ fail $test
+}