diff options
author | Mark Wielaard <mjw@redhat.com> | 2008-10-10 12:03:24 +0200 |
---|---|---|
committer | Mark Wielaard <mjw@redhat.com> | 2008-10-10 12:03:24 +0200 |
commit | 584426f6d52569b1c1f9e3f9f6d5caa982838c88 (patch) | |
tree | d66f5e5df07bfdda974f3dd49b0edc7fcffc8462 /testsuite/systemtap.base/uprobes.exp | |
parent | 3449f611f8ac6e1c00a9f93f51f209b585a4d171 (diff) | |
download | systemtap-steved-584426f6d52569b1c1f9e3f9f6d5caa982838c88.tar.gz systemtap-steved-584426f6d52569b1c1f9e3f9f6d5caa982838c88.tar.xz systemtap-steved-584426f6d52569b1c1f9e3f9f6d5caa982838c88.zip |
Cleanup generated files from uprobes.exp test.
Diffstat (limited to 'testsuite/systemtap.base/uprobes.exp')
-rw-r--r-- | testsuite/systemtap.base/uprobes.exp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/testsuite/systemtap.base/uprobes.exp b/testsuite/systemtap.base/uprobes.exp index 391f5028..02a0fd33 100644 --- a/testsuite/systemtap.base/uprobes.exp +++ b/testsuite/systemtap.base/uprobes.exp @@ -16,12 +16,12 @@ close $fp if [file exists $path] then { pass "$test prep" } else { fail "$test prep" } catch {exec gcc -g -o jennie jennie.c} err -if {$err == "" && [file exists jennie]} then { pass "$test compile" } else { pass "$test compile" } +if {$err == "" && [file exists jennie]} then { pass "$test compile" } else { fail "$test compile" } set rc [stap_run_batch $srcdir/$subdir/uprobes.stp] if {$rc == 0} then { pass "$test -p4" } else { fail "$test -p4" } -if {! [installtest_p]} { untested "$test -p5"; return } +if {! [installtest_p]} { untested "$test -p5"; exec rm -f jennie.c jennie; return } spawn sudo stap -v $srcdir/$subdir/uprobes.stp -c "./jennie 1 2 3 4" set ok 0 @@ -39,3 +39,5 @@ expect { } if {$ok == 10} then { pass "$test -p5" } else { fail "$test -p5 ($ok)" } catch {wait; close} + +exec rm -f jennie.c jennie |