[Mono-bugs] [Bug 55355][Maj] Changed - File.Open(path,FileMode) does not throw PathTooLongException

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 9 Mar 2004 08:18:40 -0500 (EST)


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 nrathna@novell.com.

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

--- shadow/55355	2004-03-09 08:12:43.000000000 -0500
+++ shadow/55355.tmp.31583	2004-03-09 08:18:40.000000000 -0500
@@ -2,13 +2,13 @@
 Product: Mono: Class Libraries
 Version: unspecified
 OS: Red Hat 8.0
 OS Details: 
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Major
 Component: CORLIB
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: nrathna@novell.com               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
@@ -135,6 +135,26 @@
 in (unmanaged) /usr/local/lib/libmono.so.0 [0x400848d4]
 in [0x00033] 
 (at /home/rathna/monoCVS/mcs/class/corlib/System.Reflection/MonoMethod.cs:9
 8) System.Reflection.MonoMethod:Invoke 
 (object,System.Reflection.BindingFlags,System.Reflection.Binder,object
 [],System.Globalization.CultureInfo)
+
+------- Additional Comments From nrathna@novell.com  2004-03-09 08:18 -------
+Only 
+the below test (File.Open(path,FileMode.Append) is not throwing the 
+PathTooLongException.
+
+[Test]
+		[ExpectedException (typeof (PathTooLongException))]
+		public void FileOpenAppend()
+		{
+			try
+			{
+				FileStream fStream = File.Open
+(path,FileMode.Append);
+			}
+			finally {}
+		}
+
+
+Sorry for not being clear above.