From 449e36638fc0b7188b2e9fbd9734a5b263ba9d22 Mon Sep 17 00:00:00 2001 From: Alexis Christoforides Date: Fri, 7 Dec 2018 09:02:23 -0500 Subject: [corlib] Import FileSystemInfo and family from CoreFX (#11342) Includes the following from System.IO: * FileSystemInfo * FileInfo * DirectoryInfo * Directory * FileSystem * Path `Join()` Span API and all of System.IO.Enumeration namespace. Adds about 1600 System.IO tests Behavior changes: * `File.Replace` now replaces files even if they are read-only (using the `rename` syscall on Unix) * Directory enumeration is no longer stable in the way that many Mono tests expect * Some changes in when/whether some representations of directories contain a trailing separator character * Changes in which exceptions are thrown (sometimes these are platform-dependent on CoreFX) Issues: * https://github.com/dotnet/corefx/issues/33486 * https://github.com/dotnet/corefx/issues/33490 Part of #7246 --- mcs/tests/gtest-431-1-lib.cs | 7 +++++++ mcs/tests/gtest-431-2-lib.cs | 17 +++++++++++++++++ mcs/tests/gtest-431-lib-1.cs | 7 ------- mcs/tests/gtest-431-lib-2.cs | 17 ----------------- mcs/tests/gtest-431.cs | 2 +- 5 files changed, 25 insertions(+), 25 deletions(-) create mode 100644 mcs/tests/gtest-431-1-lib.cs create mode 100644 mcs/tests/gtest-431-2-lib.cs delete mode 100644 mcs/tests/gtest-431-lib-1.cs delete mode 100644 mcs/tests/gtest-431-lib-2.cs (limited to 'mcs/tests') diff --git a/mcs/tests/gtest-431-1-lib.cs b/mcs/tests/gtest-431-1-lib.cs new file mode 100644 index 00000000000..36630d633d8 --- /dev/null +++ b/mcs/tests/gtest-431-1-lib.cs @@ -0,0 +1,7 @@ +// Compiler options: -target:library -noconfig + +namespace System.Runtime.CompilerServices +{ + [AttributeUsage(AttributeTargets.Method | AttributeTargets.Class | AttributeTargets.Assembly)] + public sealed class ExtensionAttribute : Attribute { } +} diff --git a/mcs/tests/gtest-431-2-lib.cs b/mcs/tests/gtest-431-2-lib.cs new file mode 100644 index 00000000000..36cd0dd7de3 --- /dev/null +++ b/mcs/tests/gtest-431-2-lib.cs @@ -0,0 +1,17 @@ +// Compiler options: -t:library -noconfig -r:gtest-431-1-lib.dll + +using System; + +namespace Library { + + public class Foo { + } + + public static class Extensions { + + public static void Bar (this Foo self) + { + Console.WriteLine ("Bar"); + } + } +} diff --git a/mcs/tests/gtest-431-lib-1.cs b/mcs/tests/gtest-431-lib-1.cs deleted file mode 100644 index 36630d633d8..00000000000 --- a/mcs/tests/gtest-431-lib-1.cs +++ /dev/null @@ -1,7 +0,0 @@ -// Compiler options: -target:library -noconfig - -namespace System.Runtime.CompilerServices -{ - [AttributeUsage(AttributeTargets.Method | AttributeTargets.Class | AttributeTargets.Assembly)] - public sealed class ExtensionAttribute : Attribute { } -} diff --git a/mcs/tests/gtest-431-lib-2.cs b/mcs/tests/gtest-431-lib-2.cs deleted file mode 100644 index 7ab3d5009c9..00000000000 --- a/mcs/tests/gtest-431-lib-2.cs +++ /dev/null @@ -1,17 +0,0 @@ -// Compiler options: -t:library -noconfig -r:gtest-431-lib-1.dll - -using System; - -namespace Library { - - public class Foo { - } - - public static class Extensions { - - public static void Bar (this Foo self) - { - Console.WriteLine ("Bar"); - } - } -} diff --git a/mcs/tests/gtest-431.cs b/mcs/tests/gtest-431.cs index 2f3ee03ac95..c269d4c1ef2 100644 --- a/mcs/tests/gtest-431.cs +++ b/mcs/tests/gtest-431.cs @@ -1,4 +1,4 @@ -// Compiler options: -r:gtest-431-lib-1.dll -r:gtest-431-lib-2.dll -noconfig +// Compiler options: -r:gtest-431-1-lib.dll -r:gtest-431-2-lib.dll -noconfig using System; -- cgit v1.2.3