[Mono-bugs] [Bug 74649][Maj] Changed - NUnit test in corlib fails

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 19 Apr 2005 04:40:07 -0400 (EDT)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by flashdict@gmail.com.

http://bugzilla.ximian.com/show_bug.cgi?id=74649

--- shadow/74649	2005-04-18 05:00:13.000000000 -0400
+++ shadow/74649.tmp.22523	2005-04-19 04:40:07.000000000 -0400
@@ -2,13 +2,13 @@
 Product: Mono: Runtime
 Version: 1.1
 OS: other
 OS Details: FreeBSD 6.0
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Major
 Component: io-layer
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: flashdict@gmail.com               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
@@ -34,6 +34,38 @@
 Abort trap (core dumped)
 
 I don't know if this is unique to FreeBSD, or something that is occuring
 elsewhere, but I hope so.  :)
 
 I can turn on some debugging in the io-layer if it will help.
+
+------- Additional Comments From flashdict@gmail.com  2005-04-19 04:40 -------
+Hmm.  Seems I was a bit off here.  The corlib nunit test actually
+fails on 
+
+System.IO.FileStreamTest.CtorIOException
+
+and not on DirectoryInfo.
+
+
+Here's some sample code which illustrates the bug:
+
+using System;
+using System.IO;
+public class Test
+{
+        public static void Main(string[] args)
+        {
+                string path = "ThisIsMyTestPathFor.Test"; 
+                FileStream stream = null;
+                FileStream stream2 = null;
+                stream = new FileStream (path, FileMode.CreateNew);
+                stream2 = new FileStream (path, FileMode.OpenOrCreate);
+                if (stream != null)
+                        stream.Close ();
+                if (stream2 != null)
+                        stream2.Close ();
+                if (File.Exists (path))
+                        File.Delete (path);
+        }
+}
+