Author: lupus
Date: 2005-04-20 09:38:58 -0400 (Wed, 20 Apr 2005)
New Revision: 43328

Modified:
   trunk/mcs/class/corlib/Test/System.IO/PathTest.cs
Log:
Fix some IsPathRooted tests.


Modified: trunk/mcs/class/corlib/Test/System.IO/PathTest.cs
===================================================================
--- trunk/mcs/class/corlib/Test/System.IO/PathTest.cs   2005-04-20 13:38:21 UTC 
(rev 43327)
+++ trunk/mcs/class/corlib/Test/System.IO/PathTest.cs   2005-04-20 13:38:58 UTC 
(rev 43328)
@@ -560,9 +560,15 @@
                        Assert ("IsPathRooted #04", !Path.IsPathRooted 
(String.Empty));
                        Assert ("IsPathRooted #05", !Path.IsPathRooted (" "));
                        Assert ("IsPathRooted #06", Path.IsPathRooted ("/"));
-                       Assert ("IsPathRooted #07", Path.IsPathRooted ("\\"));
+                       if (Windows)
+                               Assert ("IsPathRooted #07", Path.IsPathRooted 
("\\"));
+                       else
+                               Assert ("IsPathRooted #07", !Path.IsPathRooted 
("\\"));
                        Assert ("IsPathRooted #08", Path.IsPathRooted ("//"));
-                       Assert ("IsPathRooted #09", Path.IsPathRooted ("\\\\"));
+                       if (Windows)
+                               Assert ("IsPathRooted #09", Path.IsPathRooted 
("\\\\"));
+                       else
+                               Assert ("IsPathRooted #09", !Path.IsPathRooted 
("\\\\"));
                        Assert ("IsPathRooted #10", !Path.IsPathRooted (":"));
                        if (Windows)
                                Assert ("IsPathRooted #11", Path.IsPathRooted 
("z:"));

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

Reply via email to