Author: spouliot
Date: 2005-12-21 20:55:14 -0500 (Wed, 21 Dec 2005)
New Revision: 54714
Modified:
trunk/mcs/class/corlib/Test/System.IO/ChangeLog
trunk/mcs/class/corlib/Test/System.IO/PathTest.cs
Log:
2005-12-21 Sebastien Pouliot <[EMAIL PROTECTED]>
* PathTest.cs: Added new test case for #77058 where a Windows drive
wasn't considered during path canonalization.
Modified: trunk/mcs/class/corlib/Test/System.IO/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/Test/System.IO/ChangeLog 2005-12-22 01:54:10 UTC
(rev 54713)
+++ trunk/mcs/class/corlib/Test/System.IO/ChangeLog 2005-12-22 01:55:14 UTC
(rev 54714)
@@ -1,3 +1,8 @@
+2005-12-21 Sebastien Pouliot <[EMAIL PROTECTED]>
+
+ * PathTest.cs: Added new test case for #77058 where a Windows drive
+ wasn't considered during path canonalization.
+
2005-12-20 Sebastien Pouliot <[EMAIL PROTECTED]>
* PathTest.cs: Added new test case for #77007 where a Windows drive is
Modified: trunk/mcs/class/corlib/Test/System.IO/PathTest.cs
===================================================================
--- trunk/mcs/class/corlib/Test/System.IO/PathTest.cs 2005-12-22 01:54:10 UTC
(rev 54713)
+++ trunk/mcs/class/corlib/Test/System.IO/PathTest.cs 2005-12-22 01:55:14 UTC
(rev 54714)
@@ -679,6 +679,22 @@
}
[Test]
+ public void WindowsDriveC14N_77058 ()
+ {
+ // check for Unix platforms - see FAQ for more details
+ //
http://www.mono-project.com/FAQ:_Technical#How_to_detect_the_execution_platform_.3F
+ int platform = (int) Environment.OSVersion.Platform;
+ if ((platform == 4) || (platform == 128))
+ return;
+
+ AssertEquals ("1", @"C:\Windows\dir", Path.GetFullPath
(@"C:\Windows\System32\..\dir"));
+ AssertEquals ("2", @"C:\dir", Path.GetFullPath
(@"C:\Windows\System32\..\..\dir"));
+ AssertEquals ("3", @"C:\dir", Path.GetFullPath
(@"C:\Windows\System32\..\..\..\dir"));
+ AssertEquals ("4", @"C:\dir", Path.GetFullPath
(@"C:\Windows\System32\..\..\..\..\dir"));
+ AssertEquals ("5", @"C:\dir\", Path.GetFullPath
(@"C:\Windows\System32\..\.\..\.\..\dir\"));
+ }
+
+ [Test]
public void InvalidPathChars_Values ()
{
char[] invalid = Path.InvalidPathChars;
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches