Skip to content

Commit

Permalink
remove test references to obsolete OSes (#100247)
Browse files Browse the repository at this point in the history
  • Loading branch information
wfurt authored Mar 26, 2024
1 parent be1b035 commit 68193c4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ public static partial class PlatformDetection
public static bool IsUbuntu2004 => IsDistroAndVersion("ubuntu", 20, 4);
public static bool IsDebian => IsDistroAndVersion("debian");
public static bool IsAlpine => IsDistroAndVersion("alpine");
public static bool IsDebian10 => IsDistroAndVersion("debian", 10);
public static bool IsRaspbian10 => IsDistroAndVersion("raspbian", 10);
public static bool IsMariner => IsDistroAndVersion("mariner");
public static bool IsSLES => IsDistroAndVersion("sles");
public static bool IsTizen => IsDistroAndVersion("tizen");
public static bool IsFedora => IsDistroAndVersion("fedora");
public static bool IsLinuxBionic => IsBionic();
public static bool IsRedHatFamily => IsRedHatFamilyAndVersion();

public static bool IsMonoLinuxArm64 => IsMonoRuntime && IsLinux && IsArm64Process;
public static bool IsNotMonoLinuxArm64 => !IsMonoLinuxArm64;
Expand All @@ -40,14 +40,6 @@ public static partial class PlatformDetection
public static bool IsAppSandbox => Environment.GetEnvironmentVariable("APP_SANDBOX_CONTAINER_ID") != null;
public static bool IsNotAppSandbox => !IsAppSandbox;

// RedHat family covers RedHat and CentOS
public static bool IsRedHatFamily => IsRedHatFamilyAndVersion();
public static bool IsNotRedHatFamily => !IsRedHatFamily;
public static bool IsRedHatFamily7 => IsRedHatFamilyAndVersion(7);
public static bool IsCentos7 => IsDistroAndVersion("centos", 7);
public static bool IsNotFedoraOrRedHatFamily => !IsFedora && !IsRedHatFamily;
public static bool IsNotDebian10 => !IsDebian10;

public static Version OpenSslVersion => !IsApplePlatform && !IsWindows && !IsAndroid ?
GetOpenSslVersion() :
throw new PlatformNotSupportedException();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,12 +125,6 @@ public void MulticastInterface_Set_InvalidIndex_Throws()
[ActiveIssue("https://github.com/dotnet/runtime/issues/52124", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)]
public async Task MulticastInterface_Set_IPv6_AnyInterface_Succeeds()
{
if (PlatformDetection.IsRedHatFamily7)
{
// RH7 seems to have issues with multicast in Azure. Same code and setup can pass when executed outside of Azure.
throw new SkipTestException("IPv6 multicast environment not available");
}

// On all platforms, index 0 means "any interface"
await MulticastInterface_Set_IPv6_Helper(0);
}
Expand Down

0 comments on commit 68193c4

Please sign in to comment.