public static bool IsDebian => IsDistroAndVersion("debian");
public static bool IsAlpine => IsDistroAndVersion("alpine");
public static bool IsDebian8 => IsDistroAndVersion("debian", 8);
+ public static bool IsDebian9 => IsDistroAndVersion("debian", 9);
public static bool IsDebian10 => IsDistroAndVersion("debian", 10);
public static bool IsUbuntu1604 => IsDistroAndVersion("ubuntu", 16, 4);
public static bool IsUbuntu1704 => IsDistroAndVersion("ubuntu", 17, 4);
[ActiveIssue("https://github.com/dotnet/runtime/issues/51377", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)]
public void DnsObsoleteGetHostByName_EmptyString_ReturnsHostName()
{
- if (PlatformDetection.IsSLES)
+ if (PlatformDetection.IsSLES || // [ActiveIssue("https://github.com/dotnet/runtime/issues/55271")]
+ PlatformDetection.IsUbuntu1604 || PlatformDetection.IsDebian9) // [ActiveIssue("https://github.com/dotnet/runtime/issues/56295")]
{
- // See https://github.com/dotnet/runtime/issues/55271
- throw new SkipTestException("SLES Tests environment is not configured for this test to work.");
+ throw new SkipTestException("Test environment is not configured for this test to work.");
}
+
IPHostEntry entry = Dns.GetHostByName("");
// DNS labels should be compared as case insensitive for ASCII characters. See RFC 4343.
[ActiveIssue("https://github.com/dotnet/runtime/issues/51377", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)]
public void DnsObsoleteBeginEndGetHostByName_EmptyString_ReturnsHostName()
{
- if (PlatformDetection.IsSLES)
+ if (PlatformDetection.IsSLES || // [ActiveIssue("https://github.com/dotnet/runtime/issues/55271")]
+ PlatformDetection.IsUbuntu1604 || PlatformDetection.IsDebian9) // [ActiveIssue("https://github.com/dotnet/runtime/issues/56295")]
{
- // See https://github.com/dotnet/runtime/issues/55271
- throw new SkipTestException("SLES Tests environment is not configured for this test to work.");
+ throw new SkipTestException("Test environment is not configured for this test to work.");
}
IPHostEntry entry = Dns.EndGetHostByName(Dns.BeginGetHostByName("", null, null));
// [ActiveIssue("https://github.com/dotnet/runtime/issues/51377", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)]
!PlatformDetection.IsiOS && !PlatformDetection.IstvOS && !PlatformDetection.IsMacCatalyst &&
// [ActiveIssue("https://github.com/dotnet/runtime/issues/55271")]
- !PlatformDetection.IsSLES;
+ !PlatformDetection.IsSLES &&
+ // [ActiveIssue("https://github.com/dotnet/runtime/issues/56295")]
+ !PlatformDetection.IsUbuntu1604 && !PlatformDetection.IsDebian9;
[ConditionalTheory(nameof(GetHostEntryWorks))]
[InlineData("")]