Skip to content

Commit

Permalink
#127 disable EnvironmentVariable tests temporarily
Browse files Browse the repository at this point in the history
  • Loading branch information
FreeAndNil committed Mar 18, 2024
1 parent f70328b commit 06cfdd6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/log4net.Tests/Util/EnvironmentPatternConverterTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ public sealed class EnvironmentPatternConverterTest
[Test]
public void SystemLevelEnvironmentVariable()
{
if (System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform(System.Runtime.InteropServices.OSPlatform.Linux))
return;
EnvironmentPatternConverter converter = new EnvironmentPatternConverter();
try
{
Expand All @@ -60,6 +62,8 @@ public void SystemLevelEnvironmentVariable()
[Test]
public void UserLevelEnvironmentVariable()
{
if (System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform(System.Runtime.InteropServices.OSPlatform.Linux))
return;
EnvironmentPatternConverter converter = new EnvironmentPatternConverter();
Environment.SetEnvironmentVariable(ENVIRONMENT_VARIABLE_NAME, USER_LEVEL_VALUE, EnvironmentVariableTarget.User);

Expand Down

0 comments on commit 06cfdd6

Please sign in to comment.