77using System . Threading ;
88using System . Threading . Tasks ;
99
10+ using Microsoft . DotNet . XUnitExtensions ;
1011using Xunit ;
1112
1213namespace System . Net . NameResolution . Tests
@@ -21,13 +22,18 @@ public async Task Dns_GetHostEntryAsync_IPAddress_Ok()
2122 }
2223
2324 [ ActiveIssue ( "https://github.com/dotnet/runtime/issues/1488" , TestPlatforms . OSX ) ]
24-
25+ [ ActiveIssue ( "https://github.com/dotnet/runtime/issues/51377" , TestPlatforms . iOS | TestPlatforms . tvOS | TestPlatforms . MacCatalyst ) ]
2526 [ ConditionalTheory ( typeof ( PlatformDetection ) , nameof ( PlatformDetection . IsNotArm64Process ) ) ] // [ActiveIssue("https://github.com/dotnet/runtime/issues/27622")]
2627 [ InlineData ( "" ) ]
2728 [ InlineData ( TestSettings . LocalHost ) ]
28- [ ActiveIssue ( "https://github.com/dotnet/runtime/issues/51377" , TestPlatforms . iOS | TestPlatforms . tvOS | TestPlatforms . MacCatalyst ) ]
2929 public async Task Dns_GetHostEntry_HostString_Ok ( string hostName )
3030 {
31+ if ( PlatformDetection . IsSLES )
32+ {
33+ // See https://github.com/dotnet/runtime/issues/55271
34+ throw new SkipTestException ( "SLES Tests environment is not configured for this test to work." ) ;
35+ }
36+
3137 try
3238 {
3339 await TestGetHostEntryAsync ( ( ) => Task . FromResult ( Dns . GetHostEntry ( hostName ) ) ) ;
@@ -72,12 +78,20 @@ public async Task Dns_GetHostEntry_HostString_Ok(string hostName)
7278 }
7379
7480 [ ActiveIssue ( "https://github.com/dotnet/runtime/issues/1488" , TestPlatforms . OSX ) ]
81+ [ ActiveIssue ( "https://github.com/dotnet/runtime/issues/51377" , TestPlatforms . iOS | TestPlatforms . tvOS | TestPlatforms . MacCatalyst ) ]
7582 [ ConditionalTheory ( typeof ( PlatformDetection ) , nameof ( PlatformDetection . IsNotArm64Process ) ) ] // [ActiveIssue("https://github.com/dotnet/runtime/issues/27622")]
7683 [ InlineData ( "" ) ]
7784 [ InlineData ( TestSettings . LocalHost ) ]
78- [ ActiveIssue ( "https://github.com/dotnet/runtime/issues/51377" , TestPlatforms . iOS | TestPlatforms . tvOS | TestPlatforms . MacCatalyst ) ]
79- public async Task Dns_GetHostEntryAsync_HostString_Ok ( string hostName ) =>
85+ public async Task Dns_GetHostEntryAsync_HostString_Ok ( string hostName )
86+ {
87+ if ( PlatformDetection . IsSLES )
88+ {
89+ // See https://github.com/dotnet/runtime/issues/55271
90+ throw new SkipTestException ( "SLES Tests environment is not configured for this test to work." ) ;
91+ }
92+
8093 await TestGetHostEntryAsync ( ( ) => Dns . GetHostEntryAsync ( hostName ) ) ;
94+ }
8195
8296 [ Fact ]
8397 public async Task Dns_GetHostEntryAsync_IPString_Ok ( ) =>
0 commit comments