diff --git a/src/libraries/System.Security.Cryptography.Csp/tests/PasswordDeriveBytesTests.cs b/src/libraries/System.Security.Cryptography.Csp/tests/PasswordDeriveBytesTests.cs index 3c9fc79f2f6cd5..501cb32b68c067 100644 --- a/src/libraries/System.Security.Cryptography.Csp/tests/PasswordDeriveBytesTests.cs +++ b/src/libraries/System.Security.Cryptography.Csp/tests/PasswordDeriveBytesTests.cs @@ -343,7 +343,7 @@ public static void GetBytes_KnownValues_MD5_32() ByteUtils.HexToByteArray("F8D88E9DAFC828DA2400F5144271C2F630A1C061C654FC9DE2E7900E121461B9")); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNotBuiltWithAggressiveTrimming))] public static void GetBytes_KnownValues_SHA256_40() { TestKnownValue_GetBytes( diff --git a/src/libraries/tests.proj b/src/libraries/tests.proj index afba0d8a60ee23..cdbc00a2f23da4 100644 --- a/src/libraries/tests.proj +++ b/src/libraries/tests.proj @@ -470,6 +470,7 @@ +