Skip to content

Commit

Permalink
[tests] Ignore a don't link test that calls MulticastDelegate.BeginIn…
Browse files Browse the repository at this point in the history
…voke.

MulticastDelegate.BeginInvoke isn't supported in .NET.

Ref: dotnet/runtime#16312

Fixes this test failure:

    DontLink.DontLinkRegressionTests
    [FAIL] Bug5354 : System.PlatformNotSupportedException : Operation is not supported on this platform.
        at DontLink.DontLinkRegressionTests.Bug5354() in [...]/xamarin-macios/tests/linker/ios/dont link/DontLinkRegressionTests.cs:line 64
        at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
  • Loading branch information
rolfbjarne committed Aug 25, 2020
1 parent 9eab011 commit 87efe86
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/linker/ios/dont link/DontLinkRegressionTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ public void RemovedAttributes ()
}

[Test]
#if NET
[Ignore ("MulticastDelegate.BeginInvoke isn't supported in .NET (https://github.com/dotnet/runtime/issues/16312)")]
#endif
public void Bug5354 ()
{
Action<string> testAction = (string s) => { s.ToString (); };
Expand Down

0 comments on commit 87efe86

Please sign in to comment.