X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2Fcorlib%2FTest%2FSystem.IO%2FDirectoryInfoTest.cs;h=766ad1b17e0b1ef757e4c643973aa6213b93e068;hb=b39d5edf62fb3908e10647e1a7e60dadeb88b2be;hp=8d3dbb1cce71b3f470492b3b1e104cd0358887e7;hpb=51e0973c8e839290a7bd4fc1b7437d40f9ae786a;p=mono.git diff --git a/mcs/class/corlib/Test/System.IO/DirectoryInfoTest.cs b/mcs/class/corlib/Test/System.IO/DirectoryInfoTest.cs index 8d3dbb1cce7..766ad1b17e0 100644 --- a/mcs/class/corlib/Test/System.IO/DirectoryInfoTest.cs +++ b/mcs/class/corlib/Test/System.IO/DirectoryInfoTest.cs @@ -766,7 +766,11 @@ namespace MonoTests.System.IO public void Parent_Bug77090 () { DirectoryInfo di = new DirectoryInfo ("/home"); - AssertEquals ("/home parent", "/", di.Parent.Name); + if (Path.DirectorySeparatorChar == '\\') { + Assert ("/home parent (Windows path)", di.Parent.Name.EndsWith (":\\")); + } + else + AssertEquals ("/home parent", "/", di.Parent.Name); AssertNull ("/home parent parent", di.Parent.Parent); } }