This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


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

[PATCH] Prevent g++ testsuite crahing on cygwin


The g++ testsuite fails on cygwin.  The root cause is a bug in
old-dejagnu.exp, where it attempts to delete any output generated when the
test case is executed, in addition to deleting the executable.  See
http://gcc.gnu.org/ml/gcc-bugs/2001-03/msg00453.html.

With this patch, the g++ testsuite works on NT4/cygwin.  Bootstrapped 3.0
branch on cygwin and irix6.5

2001-03-15  David Billinghurst  (David.Billinghurst@riotinto.com)

	* lib/old-dejagnu.exp:  Don't try and delete output from executable

Index: old-dejagnu.exp
===================================================================
RCS file: /cvs/gcc/egcs/gcc/testsuite/lib/old-dejagnu.exp,v
retrieving revision 1.22
diff -u -r1.22 old-dejagnu.exp
--- old-dejagnu.exp     2001/02/08 02:29:38     1.22
+++ old-dejagnu.exp     2001/03/15 23:13:15
@@ -574,9 +574,9 @@
            }
            $status "$name $pattern Execution test"
        }
+    } else {
+        verbose "deleting $output"
+        remote_file build delete $output
     }
-
-    verbose "deleting $output"
-    remote_file build delete $output
     return 0
 }


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