Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Handle the case where the Marshal.ThrowExceptionForHR is inlined in#34968

Merged
stephentoub merged 1 commit intodotnet:masterfrom
AaronRobinsonMSFT:corefx_22244
Jan 31, 2019
Merged

Handle the case where the Marshal.ThrowExceptionForHR is inlined in#34968
stephentoub merged 1 commit intodotnet:masterfrom
AaronRobinsonMSFT:corefx_22244

Conversation

@AaronRobinsonMSFT
Copy link
Copy Markdown
Member

the test assembly and the Source isn't corlib.

cc @stephentoub @jkoritzinsky

 the test assembly and the Source isn't corlib.
@AaronRobinsonMSFT AaronRobinsonMSFT added test bug Problem in test source code (most likely) area-System.Runtime.InteropServices labels Jan 30, 2019
@AaronRobinsonMSFT AaronRobinsonMSFT added this to the 3.0 milestone Jan 30, 2019
@AaronRobinsonMSFT
Copy link
Copy Markdown
Member Author

Assert.Equal("mscorlib", ex.Source);
}

string sourceMaybe = PlatformDetection.IsNetCore
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this going to work correctly on .NET Native? Mono?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Though I guess this was the logic we already had?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is a great question. I have no idea. I assumed the logic of choice was correct. How would/could I verify this?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Though I guess this was the logic we already had?

Yep. I just added the option of the result being the current assembly. I had hoped this was already passing on other runtimes.

@stephentoub stephentoub merged commit 09bac5f into dotnet:master Jan 31, 2019
@AaronRobinsonMSFT AaronRobinsonMSFT deleted the corefx_22244 branch January 31, 2019 01:16
jkotas pushed a commit to dotnet/coreclr that referenced this pull request Apr 5, 2019
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-System.Runtime.InteropServices test bug Problem in test source code (most likely)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants