[Mono-devel-list] Directory.cs : PathTooLongException not thrown.

Rathna N NRathna at novell.com
Tue Mar 2 08:45:02 EST 2004


Hi,
I wrote a TestFixture to test PathTooLongException and executed same
against .Net and Mono, 
 
In Mono methods in the Directory class, which are expected to throw
PathTooLongException are not throwing this exception as it does in .NET.

 
Different kinds of exceptions are thrown for same input instead of an
expected PathTooLongException exception.
For example,
a. Create throws --> System.IO.IOException : Win32 IO returned
ERROR_FILENAME_EXCED_RANGE and returned path is correct.
b. Delete()  --> returns  "Win32 IO returned
ERROR_FILENAME_EXCED_RANGE", but returned path is empty.
c. Directory(path,true) --> returns 
"System.IO.DirectoryNotFoundException" and path returned is correct.
d. Directory(path,false) --> returns  "Win32 IO returned
ERROR_FILENAME_EXCED_RANGE", but returned path is empty.
 
and so on .....
 
Attached zip file contains 3 files.
1. PathTooLongExceptionTest.cs
2. mono output
3. .Net output.
 
Please guide me, if i should file separate bugs for individual
methods?
 
thanks,
Rathna.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20040302/6c0e5961/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PathTooLongTest.zip
Type: application/x-zip-compressed
Size: 4664 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20040302/6c0e5961/attachment.bin 


More information about the Mono-devel-list mailing list