Subject: [PATCH] Prevent g++ testsuite crahing on cygwin
From: "Billinghurst, David (CRTS)" <[email-masked]>
To: "[email-masked]'" <[email-masked]>
Cc: "[email-masked]'" <[email-masked]>
Date: Thu, 15 Mar 2001 23:14:33 -0000

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  ([email-masked])

	* 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
 }

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple