Imported Upstream version 6.4.0.178

Former-commit-id: 910a7a10ba8608254000363489287c006b4ad47a
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2019-08-24 08:42:41 +00:00
parent 6855a3a773
commit 46fd284812
111 changed files with 1838 additions and 930 deletions

View File

@@ -49,6 +49,7 @@ namespace System.IO.Tests
Assert.Throws<IOException>(() => Copy(testFile, testFile));
}
#if !MONOTOUCH_TV // symlink() on a TVOS device always returns EPERM
[DllImport("libc", SetLastError = true)]
private static extern int symlink(string target, string linkpath);
@@ -64,6 +65,7 @@ namespace System.IO.Tests
Copy(dangling_symlink, dangling_symlink_new_location);
Assert.True(File.Exists(dangling_symlink_new_location)); // File.Exists returns true for dangling symlinks
}
#endif
[Fact]
[SkipOnTargetFramework(TargetFrameworkMonikers.Mono, "CoreFX FileStream not yet imported")]

View File

@@ -175,6 +175,7 @@ namespace System.IO.Tests
Assert.False(File.Exists(testFileSource.FullName));
}
#if !MONOTOUCH_TV // symlink() on a TVOS device always returns EPERM
[DllImport("libc", SetLastError = true)]
private static extern int symlink(string target, string linkpath);
@@ -190,6 +191,7 @@ namespace System.IO.Tests
Move(dangling_symlink, dangling_symlink_new_location);
Assert.True(File.Exists(dangling_symlink_new_location)); // File.Exists returns true for dangling symlinks
}
#endif
[Fact]
public void FileNameWithSignificantWhitespace()