diff options
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/lib/gcc-dg.exp | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index d6b5619..eb3768b 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2005-06-07 David Billinghurst <David.Billinghurst@riotinto.com> + + PR testsuite/21945 + * lib/gcc-dg.exp (gcc-dg-test-1): Catch error if file can't be deleted. + 2005-06-15 Giovanni Bajo <giovannibajo@libero.it> * gcc.dg/vect/vect-dv-2.c, gcc.dg/vect/vect-ifcvt-2.c, diff --git a/gcc/testsuite/lib/gcc-dg.exp b/gcc/testsuite/lib/gcc-dg.exp index ab2f189..9a1e612 100644 --- a/gcc/testsuite/lib/gcc-dg.exp +++ b/gcc/testsuite/lib/gcc-dg.exp @@ -122,7 +122,7 @@ proc gcc-dg-test-1 { target_compile prog do_what extra_tool_flags } { set output_file "./[file rootname [file tail $prog]].exe" # This is the only place where we care if an executable was # created or not. If it was, dg.exp will try to run it. - remote_file build delete $output_file + catch { remote_file build delete $output_file } } default { perror "$do_what: not a valid dg-do keyword" |