Skip to content

Unit test failures in BasicCompilerSemanticTest in es-ES test runs #25757

@tmeschter

Description

@tmeschter

The following BasicCompilerSemanticTest unit tests fail when run under the es-ES locale:

  • Microsoft.CodeAnalysis.VisualBasic.UnitTests.CompilationAPITests.EmitOptionsDiagnostics
    Message
    Expected:
        Diagnostic(ERRID.ERR_InvalidDebugInformationFormat).WithArguments(\"-1\"),
        Diagnostic(ERRID.ERR_InvalidOutputName).WithArguments(\"El nombre no puede empezar con un espacio en blanco.\"),
        Diagnostic(ERRID.ERR_InvalidFileAlignment).WithArguments(\"513\"),
        Diagnostic(ERRID.ERR_InvalidSubsystemVersion).WithArguments(\"1000000.-1000000\"),
        Diagnostic(ERRID.ERR_InvalidHashAlgorithmName).WithArguments(\"invalid hash algorithm name\")
    Actual:
        Diagnostic(ERRID.ERR_InvalidDebugInformationFormat).WithArguments(\"-1\").WithLocation(1, 1),
        Diagnostic(ERRID.ERR_InvalidOutputName).WithArguments(\"Name cannot start with whitespace.\").WithLocation(1, 1),
        Diagnostic(ERRID.ERR_InvalidFileAlignment).WithArguments(\"513\").WithLocation(1, 1),
        Diagnostic(ERRID.ERR_InvalidSubsystemVersion).WithArguments(\"1000000.-1000000\").WithLocation(1, 1),
        Diagnostic(ERRID.ERR_InvalidHashAlgorithmName).WithArguments(\"invalid hash algorithm name\").WithLocation(1, 1)
    Diff:
            Diagnostic(ERRID.ERR_InvalidDebugInformationFormat).WithArguments(\"-1\"),
    ++>     Diagnostic(ERRID.ERR_InvalidOutputName).WithArguments(\"Name cannot start with whitespace.\").WithLocation(1, 1),
    -->     Diagnostic(ERRID.ERR_InvalidOutputName).WithArguments(\"El nombre no puede empezar con un espacio en blanco.\"),
            Diagnostic(ERRID.ERR_InvalidFileAlignment).WithArguments(\"513\"),
            Diagnostic(ERRID.ERR_InvalidSubsystemVersion).WithArguments(\"1000000.-1000000\"),
            Diagnostic(ERRID.ERR_InvalidHashAlgorithmName).WithArguments(\"invalid hash algorithm name\")
    Expected: True
    Actual:   False
    
    Stack trace:
     en Xunit.Assert.True(Nullable`1 condition, String userMessage)
     en Xunit.Assert.True(Boolean condition, String userMessage)
     en Microsoft.CodeAnalysis.DiagnosticExtensions.Verify(IEnumerable`1 actual, DiagnosticDescription[] expected, Boolean errorCodeOnly)
     en Microsoft.CodeAnalysis.DiagnosticExtensions.Verify(IEnumerable`1 actual, DiagnosticDescription[] expected)
     en Microsoft.CodeAnalysis.DiagnosticExtensions.Verify(ImmutableArray`1 actual, DiagnosticDescription[] expected)
     en Microsoft.CodeAnalysis.VisualBasic.UnitTests.CompilationAPITests.EmitOptionsDiagnostics()
    

Full details in Roslyn.Compilers.VisualBasic.Semantic.UnitTests.dll.zip

Metadata

Metadata

Assignees

Labels

Area-CompilersBugTenet-LocalizationSome piece of UI isn’t localized, often due to hard-coding of strings or other visible elements.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions