From 1dcf328b5b86cd71831ed9694dd09aa1087f52a1 Mon Sep 17 00:00:00 2001 From: Vlad Brezae Date: Tue, 30 Jun 2020 12:49:59 +0300 Subject: [PATCH] [wasm] Disable test on browser It OOms due to excessive allocations --- .../tests/BigInteger/GetBitLengthTests.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/libraries/System.Runtime.Numerics/tests/BigInteger/GetBitLengthTests.cs b/src/libraries/System.Runtime.Numerics/tests/BigInteger/GetBitLengthTests.cs index a038c12d697fcb..b6d2e4b009b76d 100644 --- a/src/libraries/System.Runtime.Numerics/tests/BigInteger/GetBitLengthTests.cs +++ b/src/libraries/System.Runtime.Numerics/tests/BigInteger/GetBitLengthTests.cs @@ -37,7 +37,12 @@ public static void RunGetBitLengthTests() // Random cases VerifyLoopGetBitLength(random, true); VerifyLoopGetBitLength(random, false); + } + [Fact] + [PlatformSpecific(~TestPlatforms.Browser)] // OOM on browser due to large array allocations + public static void RunGetBitLengthTestsLarge() + { // Very large cases VerifyGetBitLength(BigInteger.One << 32 << int.MaxValue, int.MaxValue + 32L + 1, 1); VerifyGetBitLength(BigInteger.One << 64 << int.MaxValue, int.MaxValue + 64L + 1, 1);