summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.base/strftime.exp
diff options
context:
space:
mode:
authorDavid Smith <dsmith@redhat.com>2009-08-20 16:54:06 -0500
committerDavid Smith <dsmith@redhat.com>2009-08-20 16:54:06 -0500
commit73812da575ff92ea388c8bb16e42a9c5aaa6ee20 (patch)
tree51c10e18b6a0faa74a0438f149e65f6589270fe4 /testsuite/systemtap.base/strftime.exp
parentdd66ed3fa714209032df7841b3c2b11f92703ac7 (diff)
downloadsystemtap-steved-73812da575ff92ea388c8bb16e42a9c5aaa6ee20.tar.gz
systemtap-steved-73812da575ff92ea388c8bb16e42a9c5aaa6ee20.tar.xz
systemtap-steved-73812da575ff92ea388c8bb16e42a9c5aaa6ee20.zip
Two minor testcase fixes.
* testsuite/systemtap.base/global_stat.exp: Improved error handling. * testsuite/systemtap.base/strftime.exp: Ditto.
Diffstat (limited to 'testsuite/systemtap.base/strftime.exp')
-rw-r--r--testsuite/systemtap.base/strftime.exp6
1 files changed, 4 insertions, 2 deletions
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)"