8000 NativeMethods.IsRunningOnLinux -> IsRunningOnUnix · GiTechLab/libgit2sharp@005869a · GitHub
[go: up one dir, main page]

Skip to content

Commit 005869a

Browse files
Edward Thomsonnulltoken
Edward Thomson
authored andcommitted
NativeMethods.IsRunningOnLinux -> IsRunningOnUnix
1 parent bc4897d commit 005869a

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

LibGit2Sharp.Tests/BlobFixture.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ public void CanTellIfTheBlobContentLooksLikeBinary()
222222

223223
private static void SkipIfNotSupported(string autocrlf)
224224
{
225-
InconclusiveIf(() => autocrlf == "true" && IsRunningOnLinux(), "Non-Windows does not support core.autocrlf = true");
225+
InconclusiveIf(() => autocrlf == "true" && IsRunningOnUnix(), "Non-Windows does not support core.autocrlf = true");
226226
}
227227
}
228228
}

LibGit2Sharp.Tests/ShadowCopyFixture.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public void CanProbeForNativeBinariesFromAShadowCopiedAssembly()
6262
string cachedAssembliesPath = Path.Combine(setup.CachePath, setup.ApplicationName);
6363
Assert.True(cachedAssemblyLocation.StartsWith(cachedAssembliesPath));
6464

65-
if (!IsRunningOnLinux())
65+
if (!IsRunningOnUnix())
6666
{
6767
// ...that this cache doesn't contain the `NativeBinaries` folder
6868
string cachedAssemblyParentPath = Path.GetDirectoryName(cachedAssemblyLocation);

LibGit2Sharp.Tests/TestHelpers/BaseFixture.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ private static bool IsFileSystemCaseSensitiveInternal()
9191
return !isInsensitive;
9292
}
9393

94-
// Should match LibGit2Sharp.Core.NativeMethods.IsRunningOnLinux()
95-
protected static bool IsRunningOnLinux()
94+
// Should match LibGit2Sharp.Core.NativeMethods.IsRunningOnUnix()
95+
protected static bool IsRunningOnUnix()
9696
{
9797
// see http://mono-project.com/FAQ%3a_Technical#Mono_Platforms
9898
var p = (int)Environment.OSVersion.Platform;

LibGit2Sharp/Core/NativeMethods.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ internal static void RemoveHandle()
6464

6565
static NativeMethods()
6666
{
67-
if (!IsRunningOnLinux())
67+
if (!IsRunningOnUnix())
6868
{
6969
string originalAssemblypath = new Uri(Assembly.GetExecutingAssembly().EscapedCodeBase).LocalPath;
7070

@@ -94,8 +94,8 @@ public static string ProcessorArchitecture
9494
}
9595
}
9696

97-
// Should match LibGit2Sharp.Tests.TestHelpers.BaseFixture.IsRunningOnLinux()
98-
private static bool IsRunningOnLinux()
97+
// Should match LibGit2Sharp.Tests.TestHelpers.BaseFixture.IsRunningOnUnix()
98+
private static bool IsRunningOnUnix()
9999
{
100100
// see http://mono-project.com/FAQ%3a_Technical#Mono_Platforms
101101
var p = (int)Environment.OSVersion.Platform;

0 commit comments

Comments
 (0)
0