diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2007-01-18 19:21:15 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2007-01-18 19:21:15 +0000 |
commit | 30dabe8a61ef231bbb931958b0a495f6d09e761a (patch) | |
tree | fc59d812c74fc38eaed6f2c299e47d80685e2e0a /ld/testsuite/lib | |
parent | 141190726e55e4dfb55e68db124391ff008f88db (diff) | |
download | gdb-30dabe8a61ef231bbb931958b0a495f6d09e761a.zip gdb-30dabe8a61ef231bbb931958b0a495f6d09e761a.tar.gz gdb-30dabe8a61ef231bbb931958b0a495f6d09e761a.tar.bz2 |
2007-01-18 H.J. Lu <hongjiu.lu@intel.com>
PR ld/1283
* lib/ld-lib.exp (run_dump_test): Remove output file first.
Diffstat (limited to 'ld/testsuite/lib')
-rw-r--r-- | ld/testsuite/lib/ld-lib.exp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ld/testsuite/lib/ld-lib.exp b/ld/testsuite/lib/ld-lib.exp index dd42eab..1f0e343 100644 --- a/ld/testsuite/lib/ld-lib.exp +++ b/ld/testsuite/lib/ld-lib.exp @@ -783,6 +783,7 @@ proc run_dump_test { name } { set sourcefile [lindex $sourcefiles $i] set objfile "tmpdir/dump$i.o" + catch "exec rm -f $objfile" exec_output lappend objfiles $objfile set cmd "$AS $ASFLAGS $opts(as) $asflags($sourcefile) -o $objfile $sourcefile" @@ -814,6 +815,7 @@ proc run_dump_test { name } { # Perhaps link the file(s). if { $run_ld } { set objfile "tmpdir/dump" + catch "exec rm -f $objfile" exec_output # Add -L$srcdir/$subdir so that the linker command can use # linker scripts in the source directory. @@ -840,6 +842,7 @@ proc run_dump_test { name } { if { $cmdret == 0 && $run_objcopy } { set infile $objfile set objfile "tmpdir/dump1" + catch "exec rm -f $objfile" exec_output # Note that we don't use OBJCOPYFLAGS here; any flags must be # explicitly specified. @@ -879,6 +882,7 @@ proc run_dump_test { name } { } } else { set objfile "tmpdir/dump0.o" + catch "exec rm -f $objfile" exec_output } # We must not have expected failure if we get here. |