From 73812da575ff92ea388c8bb16e42a9c5aaa6ee20 Mon Sep 17 00:00:00 2001 From: David Smith Date: Thu, 20 Aug 2009 16:54:06 -0500 Subject: Two minor testcase fixes. * testsuite/systemtap.base/global_stat.exp: Improved error handling. * testsuite/systemtap.base/strftime.exp: Ditto. --- testsuite/systemtap.base/strftime.exp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'testsuite/systemtap.base/strftime.exp') diff --git a/testsuite/systemtap.base/strftime.exp b/testsuite/systemtap.base/strftime.exp index decd7a65..51fa0dcc 100644 --- a/testsuite/systemtap.base/strftime.exp +++ b/testsuite/systemtap.base/strftime.exp @@ -5,7 +5,8 @@ system "rm -f %*" # check %S and %T set format %%%S_%T -exec stap -o $format -we {probe begin {println("hello");exit()}} +catch { exec stap -o $format -we {probe begin {println("hello");exit()}} } res +verbose -log $res set file [glob -nocomplain -types f %\[0-9\]\[0-9\]_\[0-9\]\[0-9\]:\[0-9\]\[0-9\]:\[0-9\]\[0-9\]] @@ -20,7 +21,8 @@ set format %%,%C,%Y,%y,%m,%d,%e,%F,%H,%I,%j,%k,%l,%M,%R,%u,%w set date1 [exec date +$format] # run stapio with strftime -exec stap -o $format -we {probe begin {println("hello");exit()}} +catch { exec stap -o $format -we {probe begin {println("hello");exit()}} } res +verbose -log $res if {[file exists $date1]} { pass "$test (except %S and %T)" -- cgit