From 78219af3821f92728b54ae7d7efeb28fdfbbc5ff Mon Sep 17 00:00:00 2001 From: fche Date: Fri, 15 Jun 2007 18:32:50 +0000 Subject: [PATCH] 2007-06-15 Frank Ch. Eigler * lib/systemtap.exp (stap_run_batch): Detect crashing stap and represent this as failing return code. --- testsuite/ChangeLog | 5 +++++ testsuite/lib/systemtap.exp | 3 +++ 2 files changed, 8 insertions(+) diff --git a/testsuite/ChangeLog b/testsuite/ChangeLog index 4bdd65608..a3ab8261a 100644 --- a/testsuite/ChangeLog +++ b/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2007-06-15 Frank Ch. Eigler + + * lib/systemtap.exp (stap_run_batch): Detect crashing stap and + represent this as failing return code. + 2007-06-14 Martin Hunt * systemtap.samples/syscalls.stp: Use printf diff --git a/testsuite/lib/systemtap.exp b/testsuite/lib/systemtap.exp index 7f5349678..46f4ada5a 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] } -- 2.43.5