From 4e14d2355434bef975d1e2a1ea05c1a159fcecde Mon Sep 17 00:00:00 2001 From: fche Date: Sat, 23 Feb 2008 20:37:18 +0000 Subject: PR5770: false systemtap/eof/timeout messages in testsuite.log 2008-02-23 Frank Ch. Eigler * */*.exp: Change all "send \003" to "exec kill -INT -" in order to more reliably kill an inferior stap/stapio/staprun process group. --- testsuite/systemtap.context/args.tcl | 2 +- testsuite/systemtap.context/backtrace.tcl | 2 +- testsuite/systemtap.context/context.exp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'testsuite/systemtap.context') 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] -- cgit