summaryrefslogtreecommitdiffstats
path: root/testsuite/lib
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@elastic.org>2008-02-23 15:36:53 -0500
committerFrank Ch. Eigler <fche@elastic.org>2008-02-23 15:36:53 -0500
commit53de687e0ca376db7ff55219833542982e477900 (patch)
treee9695c1a4defeacde66d53ea7d473b980cad2346 /testsuite/lib
parentb82961aac5cf401b2fbd52970cd28766b026d0aa (diff)
downloadsystemtap-steved-53de687e0ca376db7ff55219833542982e477900.tar.gz
systemtap-steved-53de687e0ca376db7ff55219833542982e477900.tar.xz
systemtap-steved-53de687e0ca376db7ff55219833542982e477900.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/lib')
-rw-r--r--testsuite/lib/stap_run.exp5
1 files changed, 3 insertions, 2 deletions
diff --git a/testsuite/lib/stap_run.exp b/testsuite/lib/stap_run.exp
index 5bd1549c..c2b4e74d 100644
--- a/testsuite/lib/stap_run.exp
+++ b/testsuite/lib/stap_run.exp
@@ -50,7 +50,7 @@ proc stap_run { TEST_NAME {LOAD_GEN_FUNCTION ""} {OUTPUT_CHECK_STRING ""} args }
}
}
- send "\003"
+ exec kill -INT -[exp_pid]
# check the output to see if it is sane
set output "^systemtap ending probe\r\n$OUTPUT_CHECK_STRING"
@@ -78,7 +78,8 @@ proc stap_run { TEST_NAME {LOAD_GEN_FUNCTION ""} {OUTPUT_CHECK_STRING ""} args }
}
}
-re "semantic error:" { fail "$TEST_NAME compilation" }
- timeout { fail "$TEST_NAME startup (timeout)"; send "\003" }
+ timeout { fail "$TEST_NAME startup (timeout)"
+ exec kill -INT [exp_pid] }
eof { fail "$TEST_NAME startup (eof)" }
}
catch close