diff options
author | Noah Falk <noahfalk@users.noreply.github.com> | 2022-08-08 22:07:03 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-08 22:07:03 +0300 |
commit | 2a1428084c0fedc41e44e4e71b89a7d5dce3af2e (patch) | |
tree | 6c3043e043ea4c84aa865973a7352811c1182426 /src/tests/baseservices | |
parent | 326af2c351591c1090ab10a99cedcd6c02151c42 (diff) |
Revert "Enable inlining P/Invokes into try blocks with no catch or filter clauses (#73032)" (#73551)
This reverts commit 4c07f3dbe5a439e5c6ac66fd14c4fed51aa819ce. We believe it is causing recent CI failures.
See #73247
Diffstat (limited to 'src/tests/baseservices')
-rw-r--r-- | src/tests/baseservices/exceptions/exceptioninterop/ExceptionInterop.cs | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/src/tests/baseservices/exceptions/exceptioninterop/ExceptionInterop.cs b/src/tests/baseservices/exceptions/exceptioninterop/ExceptionInterop.cs index f0f479dfc55..1c6f43e12e4 100644 --- a/src/tests/baseservices/exceptions/exceptioninterop/ExceptionInterop.cs +++ b/src/tests/baseservices/exceptions/exceptioninterop/ExceptionInterop.cs @@ -122,38 +122,4 @@ public unsafe static class ExceptionInterop Assert.True(caughtException); } - - [Fact] - [PlatformSpecific(TestPlatforms.Windows)] - [SkipOnMono("Exception interop not supported on Mono.")] - public static void ThrowNativeExceptionInFrameWithFinallyCatchInOuterFrame() - { - bool caughtException = false; - try - { - ThrowInFrameWithFinally(); - } - catch - { - caughtException = true; - } - - Assert.True(caughtException); - - [MethodImpl(MethodImplOptions.NoInlining)] - static void ThrowInFrameWithFinally() - { - try - { - ThrowException(); - } - finally - { - // Try calling another P/Invoke in the finally block before the catch - // to make sure we have everything set up - // to recover from the exceptional control flow. - NativeFunction(); - } - } - } } |