The gfortran testsuite fails (for me) on cygwin with
FAIL: gfortran.dg/forall_1.f90 execution test
ERRR: tcl error sourcing /
ERRR: rm: cannot remove `./forall_1.exe': Permission denied
This seems to some sort of race condition, with dejagnu trying to delete the
executable before the S has quite finished dumping it.
A similar problem was solved in April with
More generally, there are several occurrences of "remote_file build delete"
in the testsuite code. Should we just wrap them all with a catch now,
and be done with it.
2005-06-07 David Billinghurst <David.Billinghurst (AT) riotinto (DOT) com>
PR testsuite/21945
* lib/gcc-dg.exp (gcc-dg-test-1): Catch error if file cannot be deleted.
diff -u -r1.54 gcc-dg.exp
gcc-dg.exp 24 May 2005 21:27:37 -0000 1.54
gcc-dg.exp 7 Jun 2005 00:06:38 -0000
@@ -122,7 +122,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 {
NTICE
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.