diff options
author | hunt <hunt> | 2007-06-18 16:33:03 +0000 |
---|---|---|
committer | hunt <hunt> | 2007-06-18 16:33:03 +0000 |
commit | 59cbc061bc3f155222a3ce640217834a4148aa41 (patch) | |
tree | c62d46f4defd5f15201c952b3ab10842abeb1797 | |
parent | 6b159469f0daab2bc463c7ffbd3660b11c25ec22 (diff) | |
download | systemtap-steved-59cbc061bc3f155222a3ce640217834a4148aa41.tar.gz systemtap-steved-59cbc061bc3f155222a3ce640217834a4148aa41.tar.xz systemtap-steved-59cbc061bc3f155222a3ce640217834a4148aa41.zip |
2007-06-18 Martin Hunt <hunt@redhat.com>
From Quentin Barnes.
* lib/stap_run.exp, lib/stap_run2.exp, lib/systemtap.exp,
systemtap.base/cache.exp, systemtap.base/optim.exp,
systemtap.base/overload.exp, systemtap.base/prologues.exp,
systemtap.maps/absentstats.exp, systemtap.maps/foreach_fail.exp,
systemtap.maps/ix_clear*.exp, systemtap.maps/pmap_agg_overflow.exp,
systemtap.samples/args.exp, systemtap.samples/arith.exp,
systemtap.samples/arith_limits.exp,
systemtap.samples/control_limits.exp, systemtap.samples/lket.exp,
systemtap.samples/pfaults.exp, systemtap.samples/poll_map.exp,
systemtap.samples/primes.exp, systemtap.samples/profile.exp,
systemtap.samples/queue_demo.exp, systemtap.samples/symbols.exp,
systemtap.samples/syscalls1.exp, systemtap.samples/syscalls2.exp,
systemtap.samples/transport.exp: Small fixes to patterns, plus
fix timeouts for slower systems.
28 files changed, 62 insertions, 41 deletions
diff --git a/testsuite/lib/stap_run.exp b/testsuite/lib/stap_run.exp index 8b1c8eaa..018d2bf3 100644 --- a/testsuite/lib/stap_run.exp +++ b/testsuite/lib/stap_run.exp @@ -58,6 +58,7 @@ proc stap_run { TEST_NAME {LOAD_GEN_FUNCTION ""} {OUTPUT_CHECK_STRING ""} args } -re $output { pass "$TEST_NAME shutdown and output" expect { + -timeout -1 -re {^Pass\ ([5]):[^\r]*\ in\ ([0-9]+)usr/([0-9]+)sys/([0-9]+)real\ ms\.\r\n} {set pass$expect_out(1,string) "\t$expect_out(2,string)\t$expect_out(3,string)\t$expect_out(4,string)" verbose -log "metric:\t$TEST_NAME $pass1$pass2$pass3$pass4$pass5"} diff --git a/testsuite/lib/stap_run2.exp b/testsuite/lib/stap_run2.exp index 254b4e5a..6c22e039 100644 --- a/testsuite/lib/stap_run2.exp +++ b/testsuite/lib/stap_run2.exp @@ -29,13 +29,14 @@ proc stap_run2 { TEST_NAME args } { -timeout 180 -re {^Pass\ ([1234]):[^\r]*\ in\ ([0-9]+)usr/([0-9]+)sys/([0-9]+)real\ ms.\r\n} {set pass$expect_out(1,string) "\t$expect_out(2,string)\t$expect_out(3,string)\t$expect_out(4,string)"; exp_continue} - -re {^Pass\ ([34]): using cached .+\r\n} + -re {^Pass\ ([34]): using cached [^\r]+\r\n} {set pass$expect_out(1,string) "\t0\t0\t0"; exp_continue} -re {^Pass 5: starting run.\r\n} {exp_continue} -ex $output { pass "$TEST_NAME" expect { - -re {^Pass\ ([5]):[^\r]*\ in\ ([0-9]+)usr/([0-9]+)sys/([0-9]+)real\ ms.\r\n} + -timeout 20 + -re {^Pass\ ([5]):[^\r]*\ in\ ([0-9]+)usr/([0-9]+)sys/([0-9]+)real\ ms\.\r\n} {set pass$expect_out(1,string) "\t$expect_out(2,string)\t$expect_out(3,string)\t$expect_out(4,string)" verbose -log "metric:\t$TEST_NAME $pass1$pass2$pass3$pass4$pass5"} } diff --git a/testsuite/lib/systemtap.exp b/testsuite/lib/systemtap.exp index 46f4ada5..6c8ed540 100644 --- a/testsuite/lib/systemtap.exp +++ b/testsuite/lib/systemtap.exp @@ -82,9 +82,9 @@ proc stap_run_batch {args} { } expect { + -timeout -1 -re {[^\r]*\r} { verbose -log $expect_out(0,string); exp_continue } eof { } - timeout { exp_continue } } set results [wait] verbose -log "wait results: $results" diff --git a/testsuite/systemtap.base/cache.exp b/testsuite/systemtap.base/cache.exp index 04da509b..c8084ec9 100644 --- a/testsuite/systemtap.base/cache.exp +++ b/testsuite/systemtap.base/cache.exp @@ -27,12 +27,14 @@ proc stap_compile { TEST_NAME flags script args } { set cached 0 set compile_errors 0 expect { - -re {^Pass\ [1234]:[^\r]*\ in\ .*\ ms.\r\n} {exp_continue} + -timeout 180 + -re {^Pass\ [1234]:[^\r]*\ in\ [^\r]*\ ms\.\r\n} {exp_continue} -re {^Pass\ [34]: using cached [^\r\n]+\r\n} {incr cached 1; exp_continue} # pass-4 output - -re {^/[^\r\n]+.ko\r\n} {exp_continue} + -re {^/[^\r\n]+\.ko\r\n} {exp_continue} -re "compilation failed" {incr compile_errors 1; exp_continue} -re "semantic error:" {incr compile_errors 1; exp_continue} + timeout { fail "$TEST_NAME (timeout)" } } catch close wait diff --git a/testsuite/systemtap.base/optim.exp b/testsuite/systemtap.base/optim.exp index 41e22d7a..23735af6 100644 --- a/testsuite/systemtap.base/optim.exp +++ b/testsuite/systemtap.base/optim.exp @@ -3,7 +3,7 @@ if {![installtest_p]} { untested $test; return } spawn stap $srcdir/$subdir/optim.stp set ok 0 expect { - -timeout 30 + -timeout 120 -re {i=1} { incr ok } timeout { fail "$test (timeout)" } eof { } diff --git a/testsuite/systemtap.base/overload.exp b/testsuite/systemtap.base/overload.exp index e713c7c5..db7f49ef 100644 --- a/testsuite/systemtap.base/overload.exp +++ b/testsuite/systemtap.base/overload.exp @@ -25,8 +25,9 @@ proc stap_run_overload { TEST_NAME EXPECT_OVERLOAD args } { set cmd [concat {stap -v} $args] eval spawn $cmd expect { - -re {^Pass\ [1234]: .+real\ ms.\r\n} {exp_continue} - -re {^Pass\ ([34]): using cached .+\r\n} {exp_continue} + -timeout 150 + -re {^Pass\ [1234]: [^\r]+real\ ms\.\r\n} {exp_continue} + -re {^Pass\ ([34]): using cached [^\r]+\r\n} {exp_continue} -re {^Pass 5: starting run.\r\n} {exp_continue} -re {ERROR: probe overhead exceeded threshold\r\n} { if {$EXPECT_OVERLOAD} { @@ -35,10 +36,11 @@ proc stap_run_overload { TEST_NAME EXPECT_OVERLOAD args } { fail "$TEST_NAME unexpected overload" } } - -timeout 30 -re "^systemtap starting probe\r\n" { + -re "^systemtap starting probe\r\n" { send "\003" expect { + -timeout 10 -re {^systemtap ending probe\r\n} { if {$EXPECT_OVERLOAD} { fail "$TEST_NAME didn't receive expected overload" diff --git a/testsuite/systemtap.base/prologues.exp b/testsuite/systemtap.base/prologues.exp index b0f6a5c6..48f994a5 100644 --- a/testsuite/systemtap.base/prologues.exp +++ b/testsuite/systemtap.base/prologues.exp @@ -3,8 +3,10 @@ if {! [installtest_p]} { untested $test } else { set ok 0 spawn stap -P $srcdir/$subdir/prologues.stp expect { + -timeout 240 -re {read[^\r\n]*\r\n} { incr ok; exp_continue } -re {write[^\r\n]*\r\n} { incr ok; exp_continue } + timeout { fail "$test (timeout)" } eof } wait @@ -16,8 +18,10 @@ if {! [installtest_p]} { untested $test } else { set ok 0 spawn stap $srcdir/$subdir/prologues.stp expect { + -timeout 240 -re {read[^\r\n]*\r\n} { incr ok; exp_continue } -re {write[^\r\n]*\r\n} { incr ok; exp_continue } + timeout { fail "$test (timeout)" } eof } wait diff --git a/testsuite/systemtap.maps/absentstats.exp b/testsuite/systemtap.maps/absentstats.exp index 38cdbd07..f0e99a86 100644 --- a/testsuite/systemtap.maps/absentstats.exp +++ b/testsuite/systemtap.maps/absentstats.exp @@ -10,7 +10,7 @@ set ko 0 spawn stap -DMAXERRORS=20 $srcdir/$subdir/$test.stp # spawn echo hello children 0 expect { - -timeout 60 + -timeout 150 -re {^ERROR: empty aggregate[^\r]*\r} { incr ko ; exp_continue } -re {^WARNING: Number of errors} { incr ko ; exp_continue } -re {^0\r} { incr ok ; exp_continue } diff --git a/testsuite/systemtap.maps/foreach_fail.exp b/testsuite/systemtap.maps/foreach_fail.exp index 6d5439b7..75fcfcc4 100644 --- a/testsuite/systemtap.maps/foreach_fail.exp +++ b/testsuite/systemtap.maps/foreach_fail.exp @@ -7,6 +7,7 @@ if {![installtest_p]} { untested $test; return } spawn stap $srcdir/$subdir/$test.stp expect { + -timeout 60 timeout { fail "$test timed out" } eof { diff --git a/testsuite/systemtap.maps/ix_clear.exp b/testsuite/systemtap.maps/ix_clear.exp index 0ccc6563..0c6ca6c3 100644 --- a/testsuite/systemtap.maps/ix_clear.exp +++ b/testsuite/systemtap.maps/ix_clear.exp @@ -9,10 +9,11 @@ set pass_result {foo\[1\] = 1 1*ERROR: empty aggregate*} # spawn test spawn stap $srcdir/$subdir/$test.stp expect { + -timeout 150 $pass_result { pass "$test passed" } - -timeout 30 { + timeout { send "\003" fail "$test timed out" } diff --git a/testsuite/systemtap.maps/ix_clear2.exp b/testsuite/systemtap.maps/ix_clear2.exp index 75a2cf2a..c5e72c36 100644 --- a/testsuite/systemtap.maps/ix_clear2.exp +++ b/testsuite/systemtap.maps/ix_clear2.exp @@ -10,10 +10,11 @@ set pass_result {foo\[1\] = 1 1*ERROR: empty aggregate*} # spawn test spawn stap $srcdir/$subdir/$test.stp expect { + -timeout 150 $pass_result { pass "$test passed" } - -timeout 30 { + timeout { send "\003" fail "$test timed out" } diff --git a/testsuite/systemtap.maps/ix_clear3.exp b/testsuite/systemtap.maps/ix_clear3.exp index 4ca44008..7674fdbc 100644 --- a/testsuite/systemtap.maps/ix_clear3.exp +++ b/testsuite/systemtap.maps/ix_clear3.exp @@ -8,10 +8,11 @@ set pass_result {*ERROR: empty aggregate*} # spawn test spawn stap $srcdir/$subdir/$test.stp expect { + -timeout 150 $pass_result { pass "$test passed" } - -timeout 30 { + timeout { send "\003" fail "$test timed out" } diff --git a/testsuite/systemtap.maps/pmap_agg_overflow.exp b/testsuite/systemtap.maps/pmap_agg_overflow.exp index f3da88fe..a3d22dc2 100644 --- a/testsuite/systemtap.maps/pmap_agg_overflow.exp +++ b/testsuite/systemtap.maps/pmap_agg_overflow.exp @@ -3,19 +3,20 @@ set test "pmap_agg_overflow" if {![installtest_p]} { untested $test; return } -set pass_result "^(ERROR: .*overflow.*\r\n){2}WARNING: Number of errors: 2, skipped probes: 0\r\n$" -set skip_result "^WARNING: This test only applies to smp systems...\r\n$" +set pass_result "^(ERROR: \[^\r\]*overflow\[^\r\]*\r\n){2}WARNING: Number of errors: 2, skipped probes: 0\r\n$" +set skip_result "^WARNING: This test only applies to smp systems\.\.\.\r\n" # spawn test spawn stap -DMAXERRORS=1 -g $srcdir/$subdir/$test.stp expect { + -timeout 240 -re $pass_result { pass "$test passed" } -re $skip_result { unsupported "$test requires smp" } - -timeout 30 { + timeout { send "\003" fail "$test timed out" } diff --git a/testsuite/systemtap.samples/args.exp b/testsuite/systemtap.samples/args.exp index d147d21d..394ca9ed 100644 --- a/testsuite/systemtap.samples/args.exp +++ b/testsuite/systemtap.samples/args.exp @@ -15,7 +15,7 @@ set modname "args_[pid]" spawn stap -k -p4 -m $modname $srcdir/$subdir/args.stp set tmpdir NO_SUCH_FILE expect { - -timeout 30 + -timeout 120 -re {Keeping temporary directory "([/a-zA-Z0-9_]*)"} { pass "$test compile"; set tmpdir $expect_out(1,string) } timeout { fail "$test compile (timeout)" } @@ -40,7 +40,7 @@ if [file exists $modpath] { spawn sudo $staprunpath -d [pid] $modpath foo=hello bar=999 set ok 0 expect { - -timeout 30 + -timeout 120 -re {foo=hello bar=999} { incr ok } timeout { } eof { } @@ -55,7 +55,7 @@ if {$ok == 1} { spawn sudo $staprunpath -d [pid] $modpath foo=goodbye bar=0 set ok 0 expect { - -timeout 30 + -timeout 120 -re {foo=goodbye bar=0} { incr ok } timeout { } eof { } diff --git a/testsuite/systemtap.samples/arith.exp b/testsuite/systemtap.samples/arith.exp index cd00ab71..c4f72793 100644 --- a/testsuite/systemtap.samples/arith.exp +++ b/testsuite/systemtap.samples/arith.exp @@ -4,7 +4,7 @@ if {![installtest_p]} { untested $test; return } spawn stap -DMAXNESTING=5 $srcdir/$subdir/arith.stp set ok 0 expect { - -timeout 30 + -timeout 150 -re {passes: [0-9]* failures: 0} { incr ok } timeout { fail "$test (timeout)" } eof { } diff --git a/testsuite/systemtap.samples/arith_limits.exp b/testsuite/systemtap.samples/arith_limits.exp index 365c65db..93794c8e 100644 --- a/testsuite/systemtap.samples/arith_limits.exp +++ b/testsuite/systemtap.samples/arith_limits.exp @@ -4,7 +4,7 @@ if {![installtest_p]} { untested $test; return } spawn stap -DMAXNESTING=5 $srcdir/$subdir/arith_limits.stp set ok 0 expect { - -timeout 30 + -timeout 150 -re {passes: [0-9]* failures: 0} { incr ok } timeout { fail "$test (timeout)" } eof { } diff --git a/testsuite/systemtap.samples/control_limits.exp b/testsuite/systemtap.samples/control_limits.exp index c5cbfac3..513b2c4d 100644 --- a/testsuite/systemtap.samples/control_limits.exp +++ b/testsuite/systemtap.samples/control_limits.exp @@ -4,7 +4,8 @@ if {![installtest_p]} { untested $test; return } spawn stap -u -DMAXNESTING=5 $srcdir/$subdir/control_limits.stp set ok 0 expect { - -timeout 60 -re {ERROR.*MAXNESTING} { incr ok; exp_continue } + -timeout 150 + -re {ERROR.*MAXNESTING} { incr ok; exp_continue } timeout { fail "$test (timeout)" } eof { } } @@ -14,7 +15,8 @@ set test "control_limits MAXACTION" spawn stap -u -DMAXACTION_INTERRUPTIBLE=500 $srcdir/$subdir/control_limits.stp set ok 0 expect { - -timeout 60 -re {ERROR.*MAXACTION} { incr ok; exp_continue } + -timeout 150 + -re {ERROR.*MAXACTION} { incr ok; exp_continue } timeout { fail "$test (timeout)" } eof { } } @@ -24,7 +26,8 @@ set test "control_limits MAXSTRINGLEN small" spawn stap -u -DMAXSTRINGLEN=50 $srcdir/$subdir/control_limits.stp set ok 0 expect { - -timeout 60 -re {ERROR.*MAXSTRINGLEN reduced} { incr ok; exp_continue } + -timeout 150 + -re {ERROR.*MAXSTRINGLEN reduced} { incr ok; exp_continue } timeout { fail "$test (timeout)" } eof { } } @@ -34,7 +37,8 @@ set test "control_limits MAXSTRINGLEN large" spawn stap -u -DMAXSTRINGLEN=500 $srcdir/$subdir/control_limits.stp set ok 0 expect { - -timeout 60 -re {ERROR.*MAXSTRINGLEN enlarged} { incr ok; exp_continue } + -timeout 150 + -re {ERROR.*MAXSTRINGLEN enlarged} { incr ok; exp_continue } timeout { fail "$test (timeout)" } eof { } } diff --git a/testsuite/systemtap.samples/lket.exp b/testsuite/systemtap.samples/lket.exp index 10ca7a28..d6af897c 100644 --- a/testsuite/systemtap.samples/lket.exp +++ b/testsuite/systemtap.samples/lket.exp @@ -9,7 +9,7 @@ if {[info procs installtest_p]!="" && ![installtest_p]} {untested $test; return} eval spawn stap -v -DMAXSKIPPED=100000 -bM $srcdir/$subdir/lket.stp set failed 1 -set timeout 180 +set timeout 1800 expect { -re {^Pass\ ([1234]):\ [^\r]*\r\n} { set detail "pass$expect_out(1,string)"; @@ -19,7 +19,7 @@ expect { set detail "stap runtime"; exp_continue } - -re {Pass\ 5:[^\r]*\ in\ ([0-9]+)usr/([0-9]+)sys/([0-9]+)real\ ms.\r\n} { + -re {Pass\ 5:[^\r]*\ in\ ([0-9]+)usr/([0-9]+)sys/([0-9]+)real\ ms\.\r\n} { set failed 0 } -re {parse error|semantic error} {set detail "$expect_out(0,string)"} diff --git a/testsuite/systemtap.samples/pfaults.exp b/testsuite/systemtap.samples/pfaults.exp index 30599df5..7675078c 100644 --- a/testsuite/systemtap.samples/pfaults.exp +++ b/testsuite/systemtap.samples/pfaults.exp @@ -5,9 +5,8 @@ spawn stap -g $srcdir/$subdir/pfaults.stp set pid $spawn_id set ok 0 expect { - -timeout 30 + -timeout 240 -re {Page fault tracking, start time[^\r\n]+\r\n} { incr ok; exp_continue } - -timeout 30 -re {Page fault tracking, end time[^\r\n]+\r\n} { incr ok; exp_continue } timeout { fail "$test (timeout)" } eof { } diff --git a/testsuite/systemtap.samples/poll_map.exp b/testsuite/systemtap.samples/poll_map.exp index 6e26380a..5ade48e6 100644 --- a/testsuite/systemtap.samples/poll_map.exp +++ b/testsuite/systemtap.samples/poll_map.exp @@ -4,7 +4,7 @@ if {![installtest_p]} { untested $test; return } spawn stap -g $srcdir/$subdir/poll_map.stp set ok 0 expect { - -timeout 90 + -timeout 400 -ex "SUCCESS" { incr ok } timeout { fail "$test (timeout)" } eof { } diff --git a/testsuite/systemtap.samples/primes.exp b/testsuite/systemtap.samples/primes.exp index 5381494d..f99f67cc 100644 --- a/testsuite/systemtap.samples/primes.exp +++ b/testsuite/systemtap.samples/primes.exp @@ -4,7 +4,7 @@ if {![installtest_p]} { untested $test; return } spawn stap $srcdir/$subdir/primes.stp set ok 0 expect { - -timeout 30 + -timeout 150 -ex {odds[0] = 1} { incr ok; exp_continue } -ex {odds[1] = 3} { incr ok; exp_continue } -ex {odds[3] = 7} { incr ok; exp_continue } diff --git a/testsuite/systemtap.samples/profile.exp b/testsuite/systemtap.samples/profile.exp index f1dc1b79..249a1589 100644 --- a/testsuite/systemtap.samples/profile.exp +++ b/testsuite/systemtap.samples/profile.exp @@ -4,7 +4,8 @@ if {![installtest_p]} { untested $test; return } spawn stap $srcdir/$subdir/profile.stp set ok 0 expect { - -timeout 60 -re {kernel.function[^\r]*ttime=[0-9]*\r} { incr ok; exp_continue } + -timeout 360 + -re {kernel.function[^\r]*ttime=[0-9]*\r} { incr ok; exp_continue } timeout { fail "$test (timeout)" } eof { } } diff --git a/testsuite/systemtap.samples/queue_demo.exp b/testsuite/systemtap.samples/queue_demo.exp index 71feddd6..49dfac05 100644 --- a/testsuite/systemtap.samples/queue_demo.exp +++ b/testsuite/systemtap.samples/queue_demo.exp @@ -4,7 +4,7 @@ if {![installtest_p]} { untested $test; return } spawn stap $srcdir/$subdir/queue_demo.stp set ok 0 expect { - -timeout 30 + -timeout 240 -re {block-[^\r]*} { incr ok; exp_continue } timeout { fail "$test (timeout)" } eof { } diff --git a/testsuite/systemtap.samples/symbols.exp b/testsuite/systemtap.samples/symbols.exp index 52e90e93..0c599b58 100644 --- a/testsuite/systemtap.samples/symbols.exp +++ b/testsuite/systemtap.samples/symbols.exp @@ -4,7 +4,7 @@ if {![installtest_p]} { untested $test; return } spawn stap -g $srcdir/$subdir/symbols.stp set ok 0 expect { - -timeout 30 + -timeout 120 -re { 0x[a-f0-9]+[^\r]*\r} { incr ok; exp_continue } timeout { fail "$test (timeout)" } eof { } diff --git a/testsuite/systemtap.samples/syscalls1.exp b/testsuite/systemtap.samples/syscalls1.exp index edfddf6f..eb8a0c6d 100644 --- a/testsuite/systemtap.samples/syscalls1.exp +++ b/testsuite/systemtap.samples/syscalls1.exp @@ -4,7 +4,7 @@ if {![installtest_p]} { untested $test; return } spawn stap -p2 $srcdir/$subdir/syscalls.stp set ok 0 expect { - -timeout 30 + -timeout 180 -re {kernel.function[^\r]*sys_[^\r]*\r} { incr ok; exp_continue } timeout { fail "$test (timeout)" } eof { } diff --git a/testsuite/systemtap.samples/syscalls2.exp b/testsuite/systemtap.samples/syscalls2.exp index c817f23f..7bbd9a51 100644 --- a/testsuite/systemtap.samples/syscalls2.exp +++ b/testsuite/systemtap.samples/syscalls2.exp @@ -3,7 +3,8 @@ if {![installtest_p]} { untested $test; return } spawn stap $srcdir/$subdir/syscalls.stp set ok 0 expect { - -timeout 60 -re {[0-9]* kernel.function[^\r]*\r} { incr ok; exp_continue } + -timeout 240 + -re {[0-9]* kernel.function[^\r]*\r} { incr ok; exp_continue } timeout { fail "$test (timeout)" } eof { } } diff --git a/testsuite/systemtap.samples/transport.exp b/testsuite/systemtap.samples/transport.exp index b7d6d77b..915452b6 100644 --- a/testsuite/systemtap.samples/transport.exp +++ b/testsuite/systemtap.samples/transport.exp @@ -4,7 +4,7 @@ if {![installtest_p]} { untested $test; return } spawn stap -o probe.out -DMAXACTION=1000000 $srcdir/$subdir/transport1.stp set ok 0 expect { - -timeout 60 + -timeout 150 timeout { fail "$test (timeout)" } eof { spawn $srcdir/$subdir/transport-counts probe.out expect { @@ -22,7 +22,7 @@ set test "transport normal - relayfs" spawn stap -b -o probe.out -DMAXACTION=1000000 $srcdir/$subdir/transport1.stp set ok 0 expect { - -timeout 60 + -timeout 150 timeout { fail "$test (timeout)" } eof { spawn $srcdir/$subdir/transport-counts probe.out expect { @@ -40,7 +40,7 @@ set test "transport fill staging buffer - procfs" spawn stap -o probe.out -DMAXACTION=1000000 $srcdir/$subdir/transport2.stp set ok 0 expect { - -timeout 60 + -timeout 150 timeout { fail "$test (timeout)" } eof { spawn $srcdir/$subdir/transport-counts probe.out expect { @@ -58,7 +58,7 @@ set test "transport fill staging buffer - relayfs" spawn stap -b -o probe.out -DMAXACTION=1000000 $srcdir/$subdir/transport2.stp set ok 0 expect { - -timeout 60 + -timeout 150 timeout { fail "$test (timeout)" } eof { spawn $srcdir/$subdir/transport-counts probe.out expect { diff --git a/testsuite/systemtap.stress/conversions.exp b/testsuite/systemtap.stress/conversions.exp index b5ac4077..230904ee 100644 --- a/testsuite/systemtap.stress/conversions.exp +++ b/testsuite/systemtap.stress/conversions.exp @@ -11,10 +11,11 @@ foreach value {0 0xffffffff 0xffffffffffffffff} { set errs 0 verbose -log "exp $test $errs" expect { + -timeout 180 -re {ERROR[^\r\n]*\r\n} { incr errs; exp_continue } -re {WARNING[^\r\n]*\r\n} { incr errs; exp_continue } eof { } - timeout { } + timeout { fail "$test (timeout)" } } verbose -log "done exp $test $errs" wait |