From 3042a6657b1ab38f39c9826c959669a811532230 Mon Sep 17 00:00:00 2001 From: Ulrich Weigand Date: Fri, 19 Mar 2021 12:50:28 +0100 Subject: [PATCH] Big-endian test case fixes: Xoshiro hash (#49709) * Skip Xoshiro_AlgorithmBehavesAsExpected on big-endian systems Co-authored-by: Stephen Toub --- src/libraries/System.Runtime.Extensions/tests/System/Random.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libraries/System.Runtime.Extensions/tests/System/Random.cs b/src/libraries/System.Runtime.Extensions/tests/System/Random.cs index 56318e7..1d39866 100644 --- a/src/libraries/System.Runtime.Extensions/tests/System/Random.cs +++ b/src/libraries/System.Runtime.Extensions/tests/System/Random.cs @@ -388,7 +388,7 @@ namespace System.Tests r.NextBytes(Span.Empty); } - [Fact] + [ConditionalFact(typeof(BitConverter), nameof(BitConverter.IsLittleEndian))] // test makes little-endian assumptions public void Xoshiro_AlgorithmBehavesAsExpected() { // This test is validating implementation detail. If the algorithm used by `new Random()` is ever -- 2.7.4