From 44fc858b8c6f1996bffac1594104afa2491f0c17 Mon Sep 17 00:00:00 2001 From: Steve Harter Date: Thu, 25 Jul 2024 10:48:01 -0500 Subject: [PATCH] Disable generator tests on big-endian --- .../tests/SourceGenerationTests/GeneratorTests.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libraries/Microsoft.Extensions.Configuration.Binder/tests/SourceGenerationTests/GeneratorTests.cs b/src/libraries/Microsoft.Extensions.Configuration.Binder/tests/SourceGenerationTests/GeneratorTests.cs index 2afff818715b93..f4f9c906a93544 100644 --- a/src/libraries/Microsoft.Extensions.Configuration.Binder/tests/SourceGenerationTests/GeneratorTests.cs +++ b/src/libraries/Microsoft.Extensions.Configuration.Binder/tests/SourceGenerationTests/GeneratorTests.cs @@ -20,8 +20,12 @@ namespace Microsoft.Extensions.SourceGeneration.Configuration.Binder.Tests { [ActiveIssue("https://github.com/dotnet/runtime/issues/52062", TestPlatforms.Browser)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/105311", typeof(ConfigurationBindingGeneratorTests), nameof(IsBigEndian))] public partial class ConfigurationBindingGeneratorTests : ConfigurationBinderTestsBase { + // The source hash applied to the [Interceptable] attribute treats chars as bytes which fails baseline comparisons on big-endian. + public static bool IsBigEndian => !BitConverter.IsLittleEndian; + [Theory] [InlineData(LanguageVersion.CSharp11)] [InlineData(LanguageVersion.CSharp10)]