Skip to content

Commit d7c912f

Browse files
committed
[wasi] Quarantine tests that need System.Security.Cryptography
System.Security.Cryptography has no WASI implementation. Quarantine the tests that use it against dotnet#99126: the Asn1 KeyUsage and Cbor ECDsa tests browser already disables for crypto, the IdentityHelper hash tests, ToUtf16Tests.SomeNonAsciiInput, and the whole Microsoft.Bcl.Cryptography test project. Co-authored-by: Copilot App <[email protected]>
1 parent 4370310 commit d7c912f

6 files changed

Lines changed: 10 additions & 0 deletions

File tree

‎src/libraries/Common/tests/Tests/System/Security/IdentityHelperTests.cs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ public void ToBase32StringSuitableForDirName(byte[] buff, string expected)
2929

3030
[Fact]
3131
[SkipOnPlatform(TestPlatforms.Browser, "Not supported on Browser.")]
32+
[ActiveIssue("https://github.com/dotnet/runtime/issues/99126", TestPlatforms.Wasi)]
3233
public void GetNormalizedStrongNameHash()
3334
{
3435
// Validating that we match the exact hash the .NET Framework IsolatedStorage implementation would create.
@@ -37,6 +38,7 @@ public void GetNormalizedStrongNameHash()
3738

3839
[Fact]
3940
[SkipOnPlatform(TestPlatforms.Browser, "Not supported on Browser.")]
41+
[ActiveIssue("https://github.com/dotnet/runtime/issues/99126", TestPlatforms.Wasi)]
4042
public void GetNormalizedUrlHash()
4143
{
4244
// Validating that we match the exact hash the .NET Framework IsolatedStorage implementation would create.

‎src/libraries/System.Formats.Asn1/tests/Reader/ReadNamedBitList.cs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -569,6 +569,7 @@ public void ReadNamedBitList_BitArray_7993Bits(AsnEncodingRules ruleSet)
569569

570570
[Theory]
571571
[ActiveIssue("https://github.com/dotnet/runtime/issues/37669", TestPlatforms.Browser)]
572+
[ActiveIssue("https://github.com/dotnet/runtime/issues/99126", TestPlatforms.Wasi)]
572573
[InlineData(AsnEncodingRules.BER)]
573574
[InlineData(AsnEncodingRules.CER)]
574575
[InlineData(AsnEncodingRules.DER)]
@@ -601,6 +602,7 @@ public void VerifyReadNamedBitList_KeyUsage_OneByte(AsnEncodingRules ruleSet)
601602

602603
[Theory]
603604
[ActiveIssue("https://github.com/dotnet/runtime/issues/37669", TestPlatforms.Browser)]
605+
[ActiveIssue("https://github.com/dotnet/runtime/issues/99126", TestPlatforms.Wasi)]
604606
[InlineData(AsnEncodingRules.BER)]
605607
[InlineData(AsnEncodingRules.CER)]
606608
[InlineData(AsnEncodingRules.DER)]

‎src/libraries/System.Formats.Asn1/tests/Writer/WriteNamedBitList.cs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,7 @@ public static void VerifyWriteNamedBitList_BitArray_7993Bits(AsnEncodingRules ru
306306

307307
[Theory]
308308
[ActiveIssue("https://github.com/dotnet/runtime/issues/37669", TestPlatforms.Browser)]
309+
[ActiveIssue("https://github.com/dotnet/runtime/issues/99126", TestPlatforms.Wasi)]
309310
[InlineData(AsnEncodingRules.BER)]
310311
[InlineData(AsnEncodingRules.CER)]
311312
[InlineData(AsnEncodingRules.DER)]
@@ -338,6 +339,7 @@ public static void VerifyWriteNamedBitList_KeyUsage_OneByte(AsnEncodingRules rul
338339

339340
[Theory]
340341
[ActiveIssue("https://github.com/dotnet/runtime/issues/37669", TestPlatforms.Browser)]
342+
[ActiveIssue("https://github.com/dotnet/runtime/issues/99126", TestPlatforms.Wasi)]
341343
[InlineData(AsnEncodingRules.BER)]
342344
[InlineData(AsnEncodingRules.CER)]
343345
[InlineData(AsnEncodingRules.DER)]

‎src/libraries/System.Formats.Cbor/tests/Reader/CborReaderTests.cs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -794,6 +794,7 @@ public static void ReadEncodedValue_InvalidConformance_ConformanceCheckDisabled_
794794

795795
[Theory]
796796
[ActiveIssue("https://github.com/dotnet/runtime/issues/37669", TestPlatforms.Browser)]
797+
[ActiveIssue("https://github.com/dotnet/runtime/issues/99126", TestPlatforms.Wasi)]
797798
[InlineData("a501020326200121582065eda5a12577c2bae829437fe338701a10aaa375e1bb5b5de108de439c08551d2258201e52ed75701163f7f9e40ddf9f341b3dc9ba860af7e0ca7ca7e9eecd0084d19c",
798799
"65eda5a12577c2bae829437fe338701a10aaa375e1bb5b5de108de439c08551d",
799800
"1e52ed75701163f7f9e40ddf9f341b3dc9ba860af7e0ca7ca7e9eecd0084d19c",

‎src/libraries/System.Runtime/tests/System.Text.Encoding.Tests/Ascii/ToUtf16Tests.cs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ public static void AllAsciiInput()
5656
}
5757

5858
[Fact]
59+
[ActiveIssue("https://github.com/dotnet/runtime/issues/99126", TestPlatforms.Wasi)]
5960
public static void SomeNonAsciiInput()
6061
{
6162
using BoundedMemory<byte> asciiMem = BoundedMemory.Allocate<byte>(256);

‎src/libraries/tests.proj‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,8 @@
401401
<ItemGroup Condition="'$(TargetOS)' == 'wasi' and '$(RunDisabledWasiTests)' != 'true'">
402402
<ProjectExclusions Include="$(MSBuildThisFileDirectory)System.Net.WebSockets.Client\tests\System.Net.WebSockets.Client.Tests.csproj" />
403403
<ProjectExclusions Include="$(MSBuildThisFileDirectory)System.Net.WebSockets\tests\System.Net.WebSockets.Tests.csproj" />
404+
<!-- ActiveIssue https://github.com/dotnet/runtime/issues/99126 -->
405+
<ProjectExclusions Include="$(MSBuildThisFileDirectory)Microsoft.Bcl.Cryptography\tests\Microsoft.Bcl.Cryptography.Tests.csproj" />
404406
</ItemGroup>
405407

406408
<ItemGroup Condition="'$(TargetOS)' == 'wasi' and '$(RuntimeFlavor)' == 'CoreCLR' and '$(RunDisabledWasiTests)' != 'true'">

0 commit comments

Comments
 (0)