diff options
author | fche <fche> | 2008-02-23 20:37:18 +0000 |
---|---|---|
committer | fche <fche> | 2008-02-23 20:37:18 +0000 |
commit | 4e14d2355434bef975d1e2a1ea05c1a159fcecde (patch) | |
tree | e9695c1a4defeacde66d53ea7d473b980cad2346 /testsuite/systemtap.context | |
parent | c7f8de3f00748047b92f117d77d18791eb7e8cca (diff) | |
download | systemtap-steved-4e14d2355434bef975d1e2a1ea05c1a159fcecde.tar.gz systemtap-steved-4e14d2355434bef975d1e2a1ea05c1a159fcecde.tar.xz systemtap-steved-4e14d2355434bef975d1e2a1ea05c1a159fcecde.zip |
PR5770: false systemtap/eof/timeout messages in testsuite.log
2008-02-23 Frank Ch. Eigler <fche@elastic.org>
* */*.exp: Change all "send \003" to "exec kill -INT -<pgrp>" in order
to more reliably kill an inferior stap/stapio/staprun process group.
Diffstat (limited to 'testsuite/systemtap.context')
-rw-r--r-- | testsuite/systemtap.context/args.tcl | 2 | ||||
-rw-r--r-- | testsuite/systemtap.context/backtrace.tcl | 2 | ||||
-rw-r--r-- | testsuite/systemtap.context/context.exp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/testsuite/systemtap.context/args.tcl b/testsuite/systemtap.context/args.tcl index 37a43823..7cb79cdf 100644 --- a/testsuite/systemtap.context/args.tcl +++ b/testsuite/systemtap.context/args.tcl @@ -53,6 +53,6 @@ expect { } eof {fail "function arguments: unexpected timeout"} } -send "\003" +exec kill -INT -[exp_pid] close wait diff --git a/testsuite/systemtap.context/backtrace.tcl b/testsuite/systemtap.context/backtrace.tcl index 703f0ec2..f359cd41 100644 --- a/testsuite/systemtap.context/backtrace.tcl +++ b/testsuite/systemtap.context/backtrace.tcl @@ -117,7 +117,7 @@ expect { } eof {fail "backtrace of yyy_func3, yyy_func4.return and timer.profile. unexpected EOF" } } -send "\003" +exec kill -INT -[exp_pid] if {$m1 == 4} { pass "backtrace of yyy_func3" } else { diff --git a/testsuite/systemtap.context/context.exp b/testsuite/systemtap.context/context.exp index 11c0f2fc..71201a58 100644 --- a/testsuite/systemtap.context/context.exp +++ b/testsuite/systemtap.context/context.exp @@ -11,7 +11,7 @@ set build_dir "" proc cleanup {} { global build_dir - catch {send "\003"} + catch { exec kill -INT -[exp_pid] } foreach n {1 2} { as_root [list /bin/rm -f /lib/modules/$::uname/kernel/systemtap_test_module$n.ko] as_root [list /sbin/rmmod systemtap_test_module$n] |