[netcore] Add exception for System.Text.Json tests
authorFilip Navara <navara@emclient.com>
Mon, 1 Apr 2019 21:23:13 +0000 (23:23 +0200)
committerMarek Safar <marek.safar@gmail.com>
Mon, 1 Apr 2019 22:08:49 +0000 (00:08 +0200)
Commit migrated from https://github.com/mono/mono/commit/8b2463b57cbd2d2cf1e2842e3b70660fc2187a02

src/mono/netcore/excludes-System.Text.Json.Tests.rsp [new file with mode: 0644]

diff --git a/src/mono/netcore/excludes-System.Text.Json.Tests.rsp b/src/mono/netcore/excludes-System.Text.Json.Tests.rsp
new file mode 100644 (file)
index 0000000..c55bfa1
--- /dev/null
@@ -0,0 +1,4 @@
+# JsonSerializer.Parse<Enum>(...) generates invalid IL through DynamicMethod
+# Mono throws "System.MemberAccessException: Cannot create an abstract class: System.Enum" from System.Reflection.Emit.DynamicMethod.CreateDelegate
+# CoreCLR creates the delegate, but fails to execute it with "System.InvalidOperationException: Instances of abstract classes cannot be created."
+-nomethod System.Text.Json.Serialization.Tests.ValueTests.ValueFail