Merge pull request #2957 from akoeplinger/fix-corlib-mobile-tests
authormonojenkins <jo.shields+jenkins@xamarin.com>
Tue, 26 Apr 2016 02:25:24 +0000 (03:25 +0100)
committermonojenkins <jo.shields+jenkins@xamarin.com>
Tue, 26 Apr 2016 02:25:24 +0000 (03:25 +0100)
Fix two corlib test issues on mobile

Fixes [#40642](https://bugzilla.xamarin.com/show_bug.cgi?id=40624).

@monojenkins merge

1  2 
mcs/class/corlib/Test/System.IO/FileInfoTest.cs

index 3c23aa49f9f4af12424668f2dbf34d03d252310c,218ba79e8554516beebb729821cd92d880dc0338..50755fa0dc5bf4ac8b4ee615910d3872d75d1dd4
@@@ -595,8 -595,6 +595,8 @@@ namespace MonoTests.System.I
                        try {
                                FileInfo info = new FileInfo (path);
                                Assert.IsFalse (info.Exists, "#1");
 +                              info.Delete ();
 +                              Assert.IsFalse (info.Exists, "#1a");
                                info.Create ().Close ();
                                info = new FileInfo (path);
                                Assert.IsTrue (info.Exists, "#2");
                {
                        string name = "FIT.MoveTo.SameName.Test";
                        string path1 = TempFolder + DSC + name;
-                       string path2 = name;
+                       string path2 = TempFolder + DSC + "same";
+                       Directory.CreateDirectory (path2);
+                       path2 += DSC + name;
                        DeleteFile (path1);
                        DeleteFile (path2);