diff options
author | David Smith <dsmith@redhat.com> | 2009-02-16 14:58:40 -0600 |
---|---|---|
committer | David Smith <dsmith@redhat.com> | 2009-02-16 14:58:40 -0600 |
commit | ea1248d39b26b7f4288751cdf9eb019266bfd91b (patch) | |
tree | b6024e5ff6f4c4fcf44a8abcc976ec9082801d02 /testsuite/systemtap.base/bz6850.exp | |
parent | f5438dfc723aa0a8175efb03fe7096d393e86ee9 (diff) | |
download | systemtap-steved-ea1248d39b26b7f4288751cdf9eb019266bfd91b.tar.gz systemtap-steved-ea1248d39b26b7f4288751cdf9eb019266bfd91b.tar.xz systemtap-steved-ea1248d39b26b7f4288751cdf9eb019266bfd91b.zip |
Improved cleanup in tests.
Diffstat (limited to 'testsuite/systemtap.base/bz6850.exp')
-rw-r--r-- | testsuite/systemtap.base/bz6850.exp | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/testsuite/systemtap.base/bz6850.exp b/testsuite/systemtap.base/bz6850.exp index 73fedc8a..b96ed95c 100644 --- a/testsuite/systemtap.base/bz6850.exp +++ b/testsuite/systemtap.base/bz6850.exp @@ -10,12 +10,21 @@ set path "/proc/kallsyms" if {! [catch {exec grep -q utrace_attach $path} dummy]} { set utrace_support_found 1 } -if {$utrace_support_found == 0} { untested "$test -p4"; untested "$test -p5"; return } +if {$utrace_support_found == 0} { + catch {exec rm -f $test} + untested "$test -p4" + untested "$test -p5" + return +} set rc [stap_run_batch $srcdir/$subdir/bz6850.stp] if {$rc == 0} then { pass "$test -p4" } else { fail "$test -p4" } -if {! [installtest_p]} { untested "$test -p5"; return } +if {! [installtest_p]} { + catch {exec rm -f $test} + untested "$test -p5" + return +} # Pick up the stap being tested. set stapexe [exec /usr/bin/which stap] |