[corlib-tests] If MONO_IOMAP=all, special case the IsPathRooted tests to cope with...
authorMiguel de Icaza <miguel@gnome.org>
Fri, 24 Feb 2012 22:46:30 +0000 (17:46 -0500)
committerMiguel de Icaza <miguel@gnome.org>
Fri, 24 Feb 2012 22:46:30 +0000 (17:46 -0500)
mcs/class/corlib/Test/System.IO/PathTest.cs

index 64909c01a449d9c6a0c8b3e07bbcb105a438bc2f..e2d30ca6f234210ec6c544542a9a8f372c1fae89 100644 (file)
@@ -962,9 +962,14 @@ namespace MonoTests.System.IO
                                Assert.IsTrue (Path.IsPathRooted ("z:curdir"), "IsPathRooted #14");
                                Assert.IsTrue (Path.IsPathRooted ("\\abc\\def"), "IsPathRooted #15");
                        } else {
-                               Assert.IsTrue (!Path.IsPathRooted ("\\"), "IsPathRooted #09");
-                               Assert.IsTrue (!Path.IsPathRooted ("\\\\"), "IsPathRooted #10");
-                               Assert.IsTrue (!Path.IsPathRooted ("z:"), "IsPathRooted #11");
+                               if (Environment.GetEnvironmentVariable ("MONO_IOMAP") == "all"){
+                                       Assert.IsTrue (Path.IsPathRooted ("\\"), "IsPathRooted #16");
+                                       Assert.IsTrue (Path.IsPathRooted ("\\\\"), "IsPathRooted #17");
+                               } else {
+                                       Assert.IsTrue (!Path.IsPathRooted ("\\"), "IsPathRooted #09");
+                                       Assert.IsTrue (!Path.IsPathRooted ("\\\\"), "IsPathRooted #10");
+                                       Assert.IsTrue (!Path.IsPathRooted ("z:"), "IsPathRooted #11");
+                               }
                        }
                }