Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
/ corefx Public archive

Adds FreeBSD support to S.RT.I.RI #2068

Merged
merged 1 commit into from Jun 16, 2015
Merged

Adds FreeBSD support to S.RT.I.RI #2068

merged 1 commit into from Jun 16, 2015

Conversation

ghost
Copy link

@ghost ghost commented Jun 16, 2015

System.Runtime.InteropServices.RuntimInformation.

Issue-URL: #1626
R=@stephentoub,@josteink,@janhenke,@ghuntley

@@ -7,19 +7,21 @@ public struct OSPlatform : IEquatable<OSPlatform>
{
private readonly string _osPlatform;

private const string WindowsName = "WINDOWS";
private const string FreeBSDName = "FreeBSD";
Copy link
Member

Choose a reason for hiding this comment

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

I thought the decision was for the strings to be all upper case, no? @Priya91?

@stephentoub
Copy link
Member

One additional comment on the tests, but otherwise LGTM.

cc: @ellismg

@stephentoub
Copy link
Member

LGTM

@mmitche
Copy link
Member

mmitche commented Jun 16, 2015

Did the buildtools commits already get merged? I can do the corefx update soon if so.

@stephentoub
Copy link
Member

@mmitche, no, they haven't been written yet.

@ghost
Copy link
Author

ghost commented Jun 16, 2015

@mmitche, working on it. :)


public static OSPlatform Windows
public static OSPlatform FreeBSD
Copy link
Member

Choose a reason for hiding this comment

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

@ellismg just pointed out to me that this is public. It shouldn't be (in fact we should just remove it for now). As agreed upon at #1999 (comment), we're not going to add public surface area like this until more progress is made.

Copy link
Author

Choose a reason for hiding this comment

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

Should we also remove RuntimeInformation.FreeBSD.cs (public class)?

Copy link
Member

Choose a reason for hiding this comment

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

No, that's not new surface area... it's an implementation detail and is the entire point of your change 😉

Copy link
Author

Choose a reason for hiding this comment

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

Aha, yes 😄
I have removed and amended the commit.

@ellismg
Copy link
Contributor

ellismg commented Jun 16, 2015

Would you remind removing the "xplat: " token in the commit title when you rebase?

System.Runtime.InteropServices.RuntimInformation.

Issue-URL: #1626
PR-URL: #2068
@ghost ghost changed the title xplat: Adds FreeBSD support to S.RT.I.RI Adds FreeBSD support to S.RT.I.RI Jun 16, 2015
@stephentoub
Copy link
Member

LGTM. Matt?

@mmitche
Copy link
Member

mmitche commented Jun 16, 2015

LGTM

stephentoub added a commit that referenced this pull request Jun 16, 2015
Adds FreeBSD support to S.RT.I.RI
@stephentoub stephentoub merged commit f9b54a8 into dotnet:master Jun 16, 2015
Assert.False(RuntimeInformation.IsOSPlatform(OSPlatform.Linux));
Assert.False(RuntimeInformation.IsOSPlatform(OSPlatform.OSX));
}

[Fact, PlatformSpecific(PlatformID.Linux)]
Copy link
Member

Choose a reason for hiding this comment

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

@jasonwilliams200OK Where are the CheckFreeBSD() tests?

    [Fact, PlatformSpecific(PlatformID.FreeBSD)]
    public void CheckFreeBSD()
    {
        // yada
    }

Copy link
Member

Choose a reason for hiding this comment

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

@ghost ghost mentioned this pull request Jul 25, 2015
@karelz karelz added this to the 1.0.0-rtm milestone Jan 25, 2017
ViktorHofer pushed a commit to ViktorHofer/arcade that referenced this pull request Jul 20, 2018
ViktorHofer pushed a commit to dotnet/arcade that referenced this pull request Jul 20, 2018
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
System.Runtime.InteropServices.RuntimInformation.

Issue-URL: dotnet/corefx#1626
PR-URL: dotnet/corefx#2068


Commit migrated from dotnet/corefx@64b7f87
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
Adds FreeBSD support to S.RT.I.RI

Commit migrated from dotnet/corefx@f9b54a8
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants