summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.base/control_limits.exp
diff options
context:
space:
mode:
authorMark Wielaard <mjw@redhat.com>2009-02-20 14:56:38 +0100
committerMark Wielaard <mjw@redhat.com>2009-02-20 14:56:38 +0100
commit02615365a92ca2570c1f96abc8a97674aa2ccae1 (patch)
treeebedfd91a0f6d299b39e84295e091e12c0767dc8 /testsuite/systemtap.base/control_limits.exp
parentc3bad3042df505a3470f1e20b09822a9df1d4761 (diff)
parentadc67597f327cd43d58b1d0cb740dab14a75a058 (diff)
downloadsystemtap-steved-02615365a92ca2570c1f96abc8a97674aa2ccae1.tar.gz
systemtap-steved-02615365a92ca2570c1f96abc8a97674aa2ccae1.tar.xz
systemtap-steved-02615365a92ca2570c1f96abc8a97674aa2ccae1.zip
Merge branch 'master' into pr6866
Conflicts: ChangeLog: Removed runtime/ChangeLog: Removed runtime/sym.c: Merged runtime/task_finder.c: Merged tapset/ChangeLog: Removed testsuite/ChangeLog: Removed
Diffstat (limited to 'testsuite/systemtap.base/control_limits.exp')
-rw-r--r--testsuite/systemtap.base/control_limits.exp46
1 files changed, 46 insertions, 0 deletions
diff --git a/testsuite/systemtap.base/control_limits.exp b/testsuite/systemtap.base/control_limits.exp
new file mode 100644
index 00000000..513b2c4d
--- /dev/null
+++ b/testsuite/systemtap.base/control_limits.exp
@@ -0,0 +1,46 @@
+set test "control_limits MAXNESTING"
+if {![installtest_p]} { untested $test; return }
+
+spawn stap -u -DMAXNESTING=5 $srcdir/$subdir/control_limits.stp
+set ok 0
+expect {
+ -timeout 150
+ -re {ERROR.*MAXNESTING} { incr ok; exp_continue }
+ timeout { fail "$test (timeout)" }
+ eof { }
+}
+if {$ok == 1} { pass "$test ($ok)" } { fail "$test ($ok)" }
+
+set test "control_limits MAXACTION"
+spawn stap -u -DMAXACTION_INTERRUPTIBLE=500 $srcdir/$subdir/control_limits.stp
+set ok 0
+expect {
+ -timeout 150
+ -re {ERROR.*MAXACTION} { incr ok; exp_continue }
+ timeout { fail "$test (timeout)" }
+ eof { }
+}
+if {$ok == 1} { pass "$test ($ok)" } { fail "$test ($ok)" }
+
+set test "control_limits MAXSTRINGLEN small"
+spawn stap -u -DMAXSTRINGLEN=50 $srcdir/$subdir/control_limits.stp
+set ok 0
+expect {
+ -timeout 150
+ -re {ERROR.*MAXSTRINGLEN reduced} { incr ok; exp_continue }
+ timeout { fail "$test (timeout)" }
+ eof { }
+}
+if {$ok == 1} { pass "$test ($ok)" } { fail "$test ($ok)" }
+
+set test "control_limits MAXSTRINGLEN large"
+spawn stap -u -DMAXSTRINGLEN=500 $srcdir/$subdir/control_limits.stp
+set ok 0
+expect {
+ -timeout 150
+ -re {ERROR.*MAXSTRINGLEN enlarged} { incr ok; exp_continue }
+ timeout { fail "$test (timeout)" }
+ eof { }
+}
+if {$ok == 1} { pass "$test ($ok)" } { fail "$test ($ok)" }
+