Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix PlatformUtilities methods #1209

Merged
merged 3 commits into from
Sep 3, 2021
Merged

Conversation

WardenGnaw
Copy link
Member

Use 'RuntimeInformation.IsOSPlatform' instead of
'Environment.OSVersion.Platform'

Environment.OSVersion.Platform on .NET 5 is returning 'Unix' for macOS
which is causing a bunch of our cases to not work.

Tested RuntimeInformation.IsOSPlatform(OSPlatform.Windows) on net472 on
Windows and it returns true.

@WardenGnaw
Copy link
Member Author

Investigating failing macOS tests. May be an indicator of other macOS issues.

Use 'RuntimeInformation.IsOSPlatform' instead of
'Environment.OSVersion.Platform'

Environment.OSVersion.Platform on .NET 5 is returning 'Unix' for macOS
which is causing a bunch of our cases to not work.

Tested RuntimeInformation.IsOSPlatform(OSPlatform.Windows) on net472 on
Windows and it returns true.
darwin-debug does not like environment with spaces, and it is sent by lldb-mi.
Needs to be fixed externally.
@WardenGnaw
Copy link
Member Author

Disabling Tests since they seem to be a test machine only issue / lldb-mi external issue.

Choosing to complete this PR instead since without these changes, it causes the IsOSX checks to return false on macOS.

@WardenGnaw WardenGnaw merged commit c9ea7b2 into main Sep 3, 2021
@WardenGnaw WardenGnaw deleted the dev/waan/fixPlatformUtilities branch September 21, 2021 00:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants