Skip to content

Commit

Permalink
[mono][tests] Disable failing library tests on linux-bionic (dotnet#9…
Browse files Browse the repository at this point in the history
…3108)

* Disable IntrinsicsInSystemPrivateCoreLibUnitTest tests

* Disable NegotiateAuthenticationTests tests

* Disable System.Runtime.Caching tests
  • Loading branch information
kotlarmilos authored Oct 6, 2023
1 parent 9634520 commit f881ce7
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public void Constructor_Overloads_Validation()
}

[Fact]
[SkipOnPlatform(TestPlatforms.LinuxBionic, "https://github.com/dotnet/runtime/issues/93104")]
public void RemoteIdentity_ThrowsOnUnauthenticated()
{
NegotiateAuthenticationClientOptions clientOptions = new NegotiateAuthenticationClientOptions { Credential = s_testCredentialRight, TargetName = "HTTP/foo" };
Expand Down Expand Up @@ -65,6 +66,7 @@ public void RemoteIdentity_ThrowsOnDisposed()
}

[Fact]
[SkipOnPlatform(TestPlatforms.LinuxBionic, "https://github.com/dotnet/runtime/issues/93104")]
public void Package_Unsupported()
{
NegotiateAuthenticationClientOptions clientOptions = new NegotiateAuthenticationClientOptions { Package = "INVALID", Credential = s_testCredentialRight, TargetName = "HTTP/foo" };
Expand Down Expand Up @@ -96,6 +98,7 @@ public void Package_Unsupported_NTLM()

[Fact]
[SkipOnPlatform(TestPlatforms.Windows, "The test is specific to GSSAPI / Managed implementations of NegotiateAuthentication")]
[SkipOnPlatform(TestPlatforms.LinuxBionic, "https://github.com/dotnet/runtime/issues/93104")]
public void DefaultNetworkCredentials_NTLM_DoesNotThrow()
{
NegotiateAuthenticationClientOptions clientOptions = new NegotiateAuthenticationClientOptions { Package = "NTLM", Credential = CredentialCache.DefaultNetworkCredentials, TargetName = "HTTP/foo" };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ class PackedSimd
";
[Fact]
[SkipOnPlatform(TestPlatforms.LinuxBionic, "https://github.com/dotnet/runtime/issues/93103")]
public async Task TestMethodUnprotectedUse()
{
var test = BoilerPlate + @"
Expand All @@ -109,6 +110,7 @@ static void FuncBad()
}

[Fact]
[SkipOnPlatform(TestPlatforms.LinuxBionic, "https://github.com/dotnet/runtime/issues/93103")]
public async Task TestMethodUnprotectedUseWithIntrinsicsHelperAttribute()
{
var test = BoilerPlate + @"
Expand All @@ -129,6 +131,7 @@ static void FuncGood()
}

[Fact]
[SkipOnPlatform(TestPlatforms.LinuxBionic, "https://github.com/dotnet/runtime/issues/93103")]
public async Task TestMethodUnprotectedUseWithIntrinsicsHelperAttributeComplex()
{
var test = BoilerPlate + @"
Expand All @@ -154,6 +157,7 @@ static void FuncGood()
}

[Fact]
[SkipOnPlatform(TestPlatforms.LinuxBionic, "https://github.com/dotnet/runtime/issues/93103")]
public async Task TestMethodUnprotectedUseInLocalFunctionWithIntrinsicsHelperAttributeNotOnLocalFunction()
{
var test = BoilerPlate + @"
Expand All @@ -179,6 +183,7 @@ static void LocalFunc()
}

[Fact]
[SkipOnPlatform(TestPlatforms.LinuxBionic, "https://github.com/dotnet/runtime/issues/93103")]
public async Task TestMethodUnprotectedUseInLambdaWithIntrinsicsHelperAttributeOnOuterFunction()
{
var test = BoilerPlate + @"
Expand All @@ -204,6 +209,7 @@ static void FuncBad()
}

[Fact]
[SkipOnPlatform(TestPlatforms.LinuxBionic, "https://github.com/dotnet/runtime/issues/93103")]
public async Task TestMethodUnprotectedUseInLocalFunctionWithIntrinsicsHelperAttributeOnLocalFunction()
{
var test = BoilerPlate + @"
Expand All @@ -229,6 +235,7 @@ static void LocalFunc()
}

[Fact]
[SkipOnPlatform(TestPlatforms.LinuxBionic, "https://github.com/dotnet/runtime/issues/93103")]
public async Task TestMethodUnprotectedNestedTypeUse()
{
var test = BoilerPlate + @"
Expand Down Expand Up @@ -268,6 +275,7 @@ static void FuncGood()


[Fact]
[SkipOnPlatform(TestPlatforms.LinuxBionic, "https://github.com/dotnet/runtime/issues/93103")]
public async Task TestMethodWithIfStatementButWithInadequateHelperMethodAttribute()
{
var test = BoilerPlate + @"
Expand Down Expand Up @@ -309,6 +317,7 @@ static void FuncBad()
}

[Fact]
[SkipOnPlatform(TestPlatforms.LinuxBionic, "https://github.com/dotnet/runtime/issues/93103")]
public async Task TestMethodWithIfStatementWithNestedAndBaseTypeLookupRequired()
{
var test = BoilerPlate + @"
Expand All @@ -328,6 +337,7 @@ static void FuncGood()
}

[Fact]
[SkipOnPlatform(TestPlatforms.LinuxBionic, "https://github.com/dotnet/runtime/issues/93103")]
public async Task TestMethodWithTernaryOperator()
{
var test = BoilerPlate + @"
Expand All @@ -346,6 +356,7 @@ static bool FuncGood()
}

[Fact]
[SkipOnPlatform(TestPlatforms.LinuxBionic, "https://github.com/dotnet/runtime/issues/93103")]
public async Task TestMethodWithIfStatementWithOrOperationCase()
{
var test = BoilerPlate + @"
Expand Down Expand Up @@ -375,6 +386,7 @@ static void FuncGood()
}

[Fact]
[SkipOnPlatform(TestPlatforms.LinuxBionic, "https://github.com/dotnet/runtime/issues/93103")]
public async Task TestMethodWithIfStatementWithOrOperationCaseWithImplicationProcessingRequired()
{
var test = BoilerPlate + @"
Expand Down Expand Up @@ -404,6 +416,7 @@ static void FuncGood()
}

[Fact]
[SkipOnPlatform(TestPlatforms.LinuxBionic, "https://github.com/dotnet/runtime/issues/93103")]
public async Task TestMethodWithIfStatementAroundLocalFunctionDefinition()
{
var test = BoilerPlate + @"
Expand Down Expand Up @@ -433,6 +446,7 @@ void LocalFunction()
}

[Fact]
[SkipOnPlatform(TestPlatforms.LinuxBionic, "https://github.com/dotnet/runtime/issues/93103")]
public async Task TestMethodWithIfStatementAroundLambdaFunctionDefinition()
{
var test = BoilerPlate + @"
Expand All @@ -459,6 +473,7 @@ static void FuncGood()
}

[Fact]
[SkipOnPlatform(TestPlatforms.LinuxBionic, "https://github.com/dotnet/runtime/issues/93103")]
public async Task TestHelperMethodsCanOnlyBeCalledWithAppropriateIsSupportedChecksError()
{
var test = BoilerPlate + @"
Expand Down Expand Up @@ -509,6 +524,7 @@ static void FuncBad()
await VerifyCS.VerifyAnalyzerAsync(test, expected, expected2, expected3, expected4, expected5);
}
[Fact]
[SkipOnPlatform(TestPlatforms.LinuxBionic, "https://github.com/dotnet/runtime/issues/93103")]
public async Task TestHelperMethodsCanOnlyBeCalledWithAppropriateIsSupportedChecksSuccess()
{
var test = BoilerPlate + @"
Expand Down Expand Up @@ -549,6 +565,7 @@ static void FuncGood()
}

[Fact]
[SkipOnPlatform(TestPlatforms.LinuxBionic, "https://github.com/dotnet/runtime/issues/93103")]
public async Task TestHelperMethodsUnrelatedPropertyDoesntHelp()
{
var test = BoilerPlate + @"
Expand Down Expand Up @@ -579,6 +596,7 @@ static void FuncBad()
}

[Fact]
[SkipOnPlatform(TestPlatforms.LinuxBionic, "https://github.com/dotnet/runtime/issues/93103")]
public async Task TestHelperMethodsWithHelperProperty()
{
var test = BoilerPlate + @"
Expand Down Expand Up @@ -609,6 +627,7 @@ static void FuncGood()


[Fact]
[SkipOnPlatform(TestPlatforms.LinuxBionic, "https://github.com/dotnet/runtime/issues/93103")]
public async Task TestMethodUseOfIntrinsicsFromWithinOtherMethodOnIntrinsicType()
{
var test = @"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1510,6 +1510,7 @@ public class MemoryCacheTestExpires4
public static bool SupportsPhysicalMemoryMonitor => MemoryCacheTest.SupportsPhysicalMemoryMonitor;

[ConditionalFact(nameof(SupportsPhysicalMemoryMonitor))]
[SkipOnPlatform(TestPlatforms.LinuxBionic, "https://github.com/dotnet/runtime/issues/93106")]
public async Task TestCacheShrink()
{
const int HEAP_RESIZE_THRESHOLD = 8192 + 2;
Expand Down Expand Up @@ -1569,6 +1570,7 @@ public class MemoryCacheTestExpires5
public static bool SupportsPhysicalMemoryMonitor => MemoryCacheTest.SupportsPhysicalMemoryMonitor;

[ConditionalFact(nameof(SupportsPhysicalMemoryMonitor))]
[SkipOnPlatform(TestPlatforms.LinuxBionic, "https://github.com/dotnet/runtime/issues/93106")]
public async Task TestCacheExpiryOrdering()
{
var config = new NameValueCollection();
Expand Down

0 comments on commit f881ce7

Please sign in to comment.