From 584426f6d52569b1c1f9e3f9f6d5caa982838c88 Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Fri, 10 Oct 2008 12:03:24 +0200 Subject: Cleanup generated files from uprobes.exp test. --- testsuite/systemtap.base/uprobes.exp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'testsuite/systemtap.base') 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 -- cgit