From 78219af3821f92728b54ae7d7efeb28fdfbbc5ff Mon Sep 17 00:00:00 2001 From: fche Date: Fri, 15 Jun 2007 18:32:50 +0000 Subject: 2007-06-15 Frank Ch. Eigler * lib/systemtap.exp (stap_run_batch): Detect crashing stap and represent this as failing return code. --- testsuite/lib/systemtap.exp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'testsuite/lib') diff --git a/testsuite/lib/systemtap.exp b/testsuite/lib/systemtap.exp index 7f534967..46f4ada5 100644 --- a/testsuite/lib/systemtap.exp +++ b/testsuite/lib/systemtap.exp @@ -88,5 +88,8 @@ proc stap_run_batch {args} { } set results [wait] verbose -log "wait results: $results" + # Crashed? + if {[llength $results] >= 5} {return 1} + # Not? return [lindex $results 3] } -- cgit