[patch] testsuite/25193 libstdc++ testsuite fails on cygwin
Billinghurst, David (CALCRTS)
david.billinghurst@comalco.riotinto.com.au
Thu Dec 1 02:46:00 GMT 2005
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.
More information about the Libstdc++
mailing list