re PR testsuite/21945 (gfortran testsuite dies on cygwin (again))
authorDavid Billinghurst <David.Billinghurst@riotinto.com>
Fri, 17 Jun 2005 06:50:32 +0000 (06:50 +0000)
committerDavid Billinghurst <billingd@gcc.gnu.org>
Fri, 17 Jun 2005 06:50:32 +0000 (06:50 +0000)
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.

From-SVN: r101124

gcc/testsuite/ChangeLog
gcc/testsuite/lib/gcc-dg.exp

index d6b5619cfb5415f3f227ae1aa90cffe18c9b49e0..eb3768bb3b827f08fc989e1d0d2ff6b6791fb698 100644 (file)
@@ -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,
index ab2f18992afe83f8f92f647992d1f42a3fd0e2cb..9a1e61272c5e9c36f81dc9ecba5e6023cb06a3bb 100644 (file)
@@ -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"