aboutsummaryrefslogtreecommitdiff
path: root/sim/testsuite/lib
diff options
context:
space:
mode:
authorBen Elliston <bje@au.ibm.com>2004-01-23 03:15:27 +0000
committerBen Elliston <bje@au.ibm.com>2004-01-23 03:15:27 +0000
commit2345c93c5f198a22aeefbbfd7021dbba967758a7 (patch)
treeb39193dcaaa9d3504c4da0a40b0ae5ccdcf7853b /sim/testsuite/lib
parenta69fbd84ce961eeaac361dfdfa56966249f6db0a (diff)
downloadgdb-2345c93c5f198a22aeefbbfd7021dbba967758a7.zip
gdb-2345c93c5f198a22aeefbbfd7021dbba967758a7.tar.gz
gdb-2345c93c5f198a22aeefbbfd7021dbba967758a7.tar.bz2
* lib/sim-defs.exp (run_sim_test): Delete the .o and .x files if a
test passes.
Diffstat (limited to 'sim/testsuite/lib')
-rw-r--r--sim/testsuite/lib/sim-defs.exp2
1 files changed, 2 insertions, 0 deletions
diff --git a/sim/testsuite/lib/sim-defs.exp b/sim/testsuite/lib/sim-defs.exp
index 017fcef..e755717 100644
--- a/sim/testsuite/lib/sim-defs.exp
+++ b/sim/testsuite/lib/sim-defs.exp
@@ -289,6 +289,7 @@ proc run_sim_test { name requested_machs } {
if { "$opts(xerror)" == "no" } {
if [string match $opts(output) $output] {
pass "$mach $testname"
+ file delete ${name}.o ${name}.x
} else {
verbose -log "output: $output" 3
verbose -log "pattern: $opts(output)" 3
@@ -304,6 +305,7 @@ proc run_sim_test { name requested_machs } {
} else {
if [string match $opts(output) $output] {
pass "$mach $testname"
+ file delete ${name}.o ${name}.x
} else {
verbose -log "output: $output" 3
verbose -log "pattern: $opts(output)" 3