[Mono-list] Directory.cs : PathTooLongException not thrown.
Rathna N
NRathna@novell.com
Tue, 02 Mar 2004 06:45:02 -0700
This is a MIME message. If you are reading this text, you may want to
consider changing to a mail reader or gateway that understands how to
properly handle MIME multipart messages.
--=__Part2D0C24CE.0__=
Content-Type: multipart/alternative; boundary="=__Part2D0C24CE.1__="
--=__Part2D0C24CE.1__=
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
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.
--=__Part2D0C24CE.1__=
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Diso-8859-1"=
>
<META content=3D"MSHTML 6.00.2800.1400" name=3DGENERATOR></HEAD>
<BODY style=3D"MARGIN: 4px 4px 1px; FONT: 10pt Microsoft Sans Serif">
<DIV>Hi,</DIV>
<DIV>I wrote a TestFixture to test PathTooLongException and executed same =
against .Net and Mono, </DIV>
<DIV> </DIV>
<DIV>In Mono methods in the Directory class, which are expected to =
throw PathTooLongException are not throwing this exception as it does in =
.NET. </DIV>
<DIV> </DIV>
<DIV>Different kinds of exceptions are thrown for same input instead of an =
expected PathTooLongException exception.</DIV>
<DIV>For example,</DIV>
<DIV>a. Create throws --> System.IO.IOException : Win32 IO =
returned ERROR_FILENAME_EXCED_RANGE and returned path is correct.</DIV>
<DIV>b. Delete() --> returns "Win32 IO returned ERROR_FILENA=
ME_EXCED_RANGE", but returned path is empty.</DIV>
<DIV>c. Directory(path,true) --> returns "System.IO.DirectoryNotFo=
undException" and path returned is correct.</DIV>
<DIV>d. Directory(path,false) --> returns "Win32 IO returned =
ERROR_FILENAME_EXCED_RANGE", but returned path is empty.</DIV>
<DIV> </DIV>
<DIV>and so on .....</DIV>
<DIV> </DIV>
<DIV>Attached zip file contains 3 files.</DIV>
<DIV>1. PathTooLongExceptionTest.cs</DIV>
<DIV>2. mono output</DIV>
<DIV>3. .Net output.</DIV>
<DIV> </DIV>
<DIV>Please guide me, if i should file separate bugs for individual =
methods?</DIV>
<DIV> </DIV>
<DIV>thanks,</DIV>
<DIV>Rathna.</DIV></BODY></HTML>
--=__Part2D0C24CE.1__=--
--=__Part2D0C24CE.0__=
Content-Type: application/x-zip-compressed; name="PathTooLongTest.zip"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="PathTooLongTest.zip"
UEsDBBQAAAAIAKuLYjANh/u4fgQAAMFXAAAgAAAAUGF0aFRvb0xvbmdFeGNlcHRpb24tLk5ldC1P
UC50eHTtmt9vGjkQx9+R+B/m6ZRI3IqQNM31jYNy6SlJUaDtw+ke3GWS9WFsansh9K8/e3eh/C4s
e1XhRkho1z9m7e98PGY9PHyQ3MIIteFKQi24CK7KpYYaTjR/jiycNc6hVq3WfnVfl/AnG6CBTwE8
4LjPdb8C9zyMGApoBNAdqwrUBb4gh3oAH5VW0ho1qkAjYlpwhLZSAoM15qup+XbEBR9CQzP+7JrV
hYBH38zAIxrUI+y50nIpaLlPu969hTfAPoc9fHqO+D99MZBq+EUbG4/GL5OvVDP5WrpD+Wwjp1Pt
5rpEiuyuFeFFkv0nkrWC9EPSEW0kGUl2CpJRTCPaSDKS7JQko5hGtJFkJNkpSUYxjWg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