Skip to content

Make SkipOnCoreClr skip always when running in CoreCLR if no flags specified and cache values - #4724

Merged
safern merged 2 commits into
dotnet:masterfrom
safern:SkipOnCoreClrCache
Jan 31, 2020
Merged

Make SkipOnCoreClr skip always when running in CoreCLR if no flags specified and cache values#4724
safern merged 2 commits into
dotnet:masterfrom
safern:SkipOnCoreClrCache

Conversation

@safern

@safern safern commented Jan 30, 2020

Copy link
Copy Markdown
Member

Based on: dotnet/runtime#118 (comment) -- I'm changing SkipOnCoreClrAttribute to only skip on checked runtime if RuntimeStressTestModes.CheckedRuntime is passed down.

Default usage will skip in all versions of coreclr.

Also fixes: #4392

cc: @stephentoub @akoeplinger @jkotas

@@ -5,10 +5,8 @@ namespace Xunit
[Flags]
public enum RuntimeStressTestModes

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.

Nit: Should this just be RuntimeTestModes? Then Any makes more sense, as it would include a "Release" if that were actually a named entry.

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.

Sounds good.

@stephentoub stephentoub 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.

Thanks.

@safern

safern commented Jan 31, 2020

Copy link
Copy Markdown
Member Author

Will merge and prepare the necessary changes in dotnet/runtime.

@safern
safern merged commit bdc8c2f into dotnet:master Jan 31, 2020
@safern
safern deleted the SkipOnCoreClrCache branch January 31, 2020 21:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add caching of static values in SkipOnCoreClrAttribute.

2 participants