blob: 513b2c4dd65d5c9add33c12f4f7b2a286df0d4ec (
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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)" }
|