re PR testsuite/25193 (libstdc++ testsuite fails on cygwin)
authorDavid Billinghurst <David.Billinghurst@riotinto.com>
Thu, 1 Dec 2005 23:57:28 +0000 (23:57 +0000)
committerDavid Billinghurst <billingd@gcc.gnu.org>
Thu, 1 Dec 2005 23:57:28 +0000 (23:57 +0000)
2005-12-02  David Billinghurst (David.Billinghurst@riotinto.com)

PR testsuite/25193
* testsuite/lib/libstdc++.exp (libstdc++-dg-test): Catch
error if file cannot be deleted.

From-SVN: r107841

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/lib/libstdc++.exp

index d0f773dfb58c9a3e7b07fbf14c4eaa5a1368d1a2..de206f6ef44a08f7d04064f695efc9d0f2be0870 100644 (file)
@@ -1,3 +1,9 @@
+2005-12-02  David Billinghurst (David.Billinghurst@riotinto.com)
+
+       PR testsuite/25193
+       * testsuite/lib/libstdc++.exp (libstdc++-dg-test): Catch
+       error if file cannot be deleted.
+
 2005-11-23  Paolo Carlini  <pcarlini@suse.de>
 
        PR libstdc++/24975 (basic_string)
index ee5111dfaf979558eb2ce677d3c9cc2a032ecb1a..0a76734d62bb62723de2d3693e2faaad0f0e88c3 100644 (file)
@@ -264,7 +264,7 @@ proc libstdc++-dg-test { 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"