Skip to content

Clean up if netcoreapp usage in System.Runtime.Tests. #21827

Closed

Description

@ghost

First, this define should also be on for uapaot builds.

Second, it's mostly used now to guard access to the "Enum's with funny backing type" statics (s_boolEnumType and friends.) These should be replaced with something that gates on PlatformDetection.IsReflectionEmitSupported.

Activity

  1. wtgodbe commented on Feb 14, 2018

    @wtgodbe
    Member

    @atsushikan it looks like https://github.com/dotnet/corefx/blob/master/src/System.Runtime/tests/System/EnumTests.cs#L64 is an example of what you're talking about - can you give an example of what should be replacing s_boolEnumType (and friends)? Do you envision that block of code not needing to be gated by an #if, or should it be gated by an #if netcoreapp OR uapaot?

  2. wtgodbe commented on Feb 14, 2018

    @wtgodbe
    Member

    So is it as simple as replacing #if netcoreapp with one of those two suggestions? Or should I append that guard to #if netcoreapp? Presumably I should do this for each usage of s_boolEnumType & the like as well?

  3. danmoseley commented on Mar 22, 2018

    @danmoseley
    Contributor

    @wtgodbe are you taking this? Can you please find an owner so it can get closed by 30th or move to future if appropriate?

  4. wtgodbe commented on Mar 22, 2018

    @wtgodbe
    Member

    @atsushikan thanks - I can take this on when I have time, but wouldn't have had it done by the 30th

  5. transferred this issue fromdotnet/corefxon Jan 31, 2020
  6. added this to the Future milestone on Jan 31, 2020
  7. added a commit that references this issue on Feb 1, 2020
    483d042
  8. ghost locked as resolved and limited conversation to collaborators on Dec 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-System.Runtimetest-enhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions