This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] testsuite/25193 libstdc++ testsuite fails on cygwin


libstdc++ testsuite fails on cygwin while trying to delete a file.
Similar patches have been applied in other parts of the gcc testsuite
over the last year or so.

For example http://gcc.gnu.org/ml/gcc-patches/2005-04/msg00146.html

I will commit as obvious after another round of testing.

2005-12-01  David Billinghurst (David.Billinghurst@riotinto.com)

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


Index: libstdc++-v3/testsuite/lib/libstdc++.exp
===================================================================
--- libstdc++-v3/testsuite/lib/libstdc++.exp    (revision 107682)
+++ libstdc++-v3/testsuite/lib/libstdc++.exp    (working copy)
@@ -264,7 +264,7 @@
             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"


NOTICE
This e-mail and any attachments are private and confidential and may contain privileged information. If you are not an authorised recipient, the copying or distribution of this e-mail and any attachments is prohibited and you must not read, print or act in reliance on this e-mail or attachments.
This notice should not be removed.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]