Skip to content

[wasm] Make some System.Console test pass with accordance to WASM PNSE behavior - #37645

Merged
kjpou1 merged 2 commits into
dotnet:masterfrom
MaximLipnin:wasm_fix_pnse_in_test
Jun 16, 2020
Merged

kjpou1 merged 2 commits into
dotnet:masterfrom
MaximLipnin:wasm_fix_pnse_in_test

Conversation

@MaximLipnin

@MaximLipnin MaximLipnin commented Jun 9, 2020 •

Copy link
Copy Markdown
Contributor

This PR is to get any feedback on how to align the existing library tests with WASM behavior where it just throws PlatformNotSupportedException.
In this change one of the System.Console tests is fixed with the help of RuntimeInformation.IsOSPlatform(OSPlatform.Create("BROWSER")).
two of the existing System.Console tests are marked with [PlatformSpecific(~TestPlatforms.Browser)] and one wasm-specific test is added to check if PNSE is thrown.

cc @steveisok

@ghost

ghost commented Jun 9, 2020

Copy link
Copy Markdown

Tagging subscribers to this area: @eiriktsarpalis
Notify danmosemsft if you want to be subscribed.

@steveisok

Copy link
Copy Markdown
Member

Is this a preferred way in making tests that throw PNSE pass in wasm?

@marek-safar

Copy link
Copy Markdown
Contributor

/cc @danmosemsft @stephentoub

@stephentoub

Copy link
Copy Markdown
Member

Is this a preferred way in making tests that throw PNSE pass in wasm?

No 😄

@MaximLipnin
MaximLipnin force-pushed the wasm_fix_pnse_in_test branch from f840e45 to 1039057 Compare June 11, 2020 10:18

@akoeplinger akoeplinger left a comment

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.

Looks good after Stephen's comments are addressed.

@MaximLipnin

Copy link
Copy Markdown
Contributor Author

Are there any objections to merge it?

@kjpou1
kjpou1 merged commit a9bba78 into dotnet:master Jun 16, 2020
@MaximLipnin
MaximLipnin deleted the wasm_fix_pnse_in_test branch June 16, 2020 11:05
@ghost ghost locked as resolved and limited conversation to collaborators Dec 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants