Author: atsushi
Date: 2007-11-02 12:46:05 -0500 (Fri, 02 Nov 2007)
New Revision: 88736

Modified:
   trunk/mcs/class/corlib/Test/System.IO/ChangeLog
   trunk/mcs/class/corlib/Test/System.IO/PathTest.cs
Log:
2007-11-02  Atsushi Enomoto  <[EMAIL PROTECTED]>

        * PathTest.cs: Fixed wrong assumption on GetDirectoryName("/")
          result on Unix (on top level it returns null).



Modified: trunk/mcs/class/corlib/Test/System.IO/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/Test/System.IO/ChangeLog     2007-11-02 17:31:13 UTC 
(rev 88735)
+++ trunk/mcs/class/corlib/Test/System.IO/ChangeLog     2007-11-02 17:46:05 UTC 
(rev 88736)
@@ -1,3 +1,8 @@
+2007-11-02  Atsushi Enomoto  <[EMAIL PROTECTED]>
+
+       * PathTest.cs: Fixed wrong assumption on GetDirectoryName("/")
+         result on Unix (on top level it returns null).
+
 2007-11-02  Robert Jordan  <[EMAIL PROTECTED]>
 
        * PathTest.cs (TestGetDirectoryName): Fix syntax errors.

Modified: trunk/mcs/class/corlib/Test/System.IO/PathTest.cs
===================================================================
--- trunk/mcs/class/corlib/Test/System.IO/PathTest.cs   2007-11-02 17:31:13 UTC 
(rev 88735)
+++ trunk/mcs/class/corlib/Test/System.IO/PathTest.cs   2007-11-02 17:46:05 UTC 
(rev 88736)
@@ -877,7 +877,7 @@
                                AssertEquals ("GetDirectoryName#1", 
Path.GetDirectoryName ("/foo//bar/dingus"), "/foo/bar");
                                AssertEquals ("GDN#3", Path.GetDirectoryName 
("foo/bar/"), "foo/bar");
                                AssertEquals ("GDN#6", Path.GetDirectoryName 
("/tmp"), "/");
-                               AssertEquals ("GDN#6", Path.GetDirectoryName 
("/"), "");
+                               AssertEquals ("GDN#6", Path.GetDirectoryName 
("/"), null);
                        } else {
                                AssertEquals ("GetDirectoryName#1", 
Path.GetDirectoryName ("/foo//bar/dingus"), "\\foo\\bar");
                                AssertEquals ("GDN#4", Path.GetDirectoryName 
("foo/bar/"), "foo\\bar");

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to