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.samples/crash.exp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'testsuite/systemtap.samples') diff --git a/testsuite/systemtap.samples/crash.exp b/testsuite/systemtap.samples/crash.exp index 629cff54..9c3e5e05 100644 --- a/testsuite/systemtap.samples/crash.exp +++ b/testsuite/systemtap.samples/crash.exp @@ -19,7 +19,7 @@ expect { timeout { fail "$test - testlog.stp timeout" } timeout { fail "$test - testlog.stp eof" } } -catch { send "\003"; close ; wait } +catch { exec kill -INT -[exp_pid]; close ; wait } # The crash(8) script creates testlog/global or testlog/cpu as_root { chmod -R a+rX testlog } -- cgit From 715a5878413aecc2e50be94f8171f7cca3955b00 Mon Sep 17 00:00:00 2001 From: fche Date: Sat, 23 Feb 2008 22:08:00 +0000 Subject: 2008-02-23 Frank Ch. Eigler * systemtap.samples/args.exp: Remove installation-specific paths from pass/fail judgements. --- testsuite/systemtap.samples/args.exp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'testsuite/systemtap.samples') diff --git a/testsuite/systemtap.samples/args.exp b/testsuite/systemtap.samples/args.exp index f6d5cec6..54647998 100644 --- a/testsuite/systemtap.samples/args.exp +++ b/testsuite/systemtap.samples/args.exp @@ -5,7 +5,7 @@ set stappath [exec which stap] set staprunpath [exec which staprun] if [file exists $staprunpath] { - pass "$test search for staprun ($staprunpath)" + pass "$test search for staprun" } else { fail "$test search for staprun" return @@ -25,15 +25,15 @@ catch {close}; wait set modpath_cwd "$modname.ko" if [file exists $modpath_cwd] { - pass "$test search for probe module ($modpath_cwd)" + pass "$test search for probe module" } else { - fail "$test search for probe module ($modpath_cwd)" + fail "$test search for probe module" return } exec /bin/rm -f $modpath_cwd if [file exists $tmpdir] { - pass "$test search for tmpdir ($tmpdir)" + pass "$test search for tmpdir" } else { fail "$test search for tmpdir" return @@ -41,9 +41,9 @@ if [file exists $tmpdir] { set modpath "$tmpdir/$modname.ko" if [file exists $modpath] { - pass "$test search for probe module ($modpath)" + pass "$test search for tmpdir probe module" } else { - fail "$test search for probe module ($modpath)" + fail "$test search for tmpdir probe module" return } -- cgit