diff options
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | testsuite/systemtap.base/uprobes.exp | 6 |
2 files changed, 8 insertions, 2 deletions
diff --git a/testsuite/ChangeLog b/testsuite/ChangeLog index ceef8c40..678ec3cf 100644 --- a/testsuite/ChangeLog +++ b/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2008-10-09 Mark Wielaard <mjw@redhat.com> + + * systemtap.base/uprobes.exp: Cleanup generated files. + 2008-10-09 Rajan Arora <rarora@redhat.com> * systemtap.base/warnings.exp: Allow for source: lines. 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 |