Skip to content

[mono] Test failed on windows: System.Reflection.Tests.AssemblyNameTests.GetAssemblyName_LockedFile #34492

Closed

Description

@MaximLipnin

System.Reflection.Tests.AssemblyNameTests.GetAssemblyName_LockedFile is disabled in Mono's CoreFX.issues_windows.rsp file and after enabling it still fails locally with the following output:

System.Reflection.Tests.AssemblyNameTests.GetAssemblyName_LockedFile [FAIL]
Assert.Throws() Failure
Expected: typeof(System.IO.FileLoadException)
Actual:   typeof(System.IO.FileNotFoundException): Could not load file or assembly '_\AppData\Local\Temp\tmpA90A.tmp' or one of its dependencies.
---- System.IO.FileNotFoundException : Could not load file or assembly '_\AppData\Local\Temp\tmpA90A.tmp' or one of its dependencies.
Stack Trace:
    _\src\mono\netcore\System.Private.CoreLib\src\System\Reflection\AssemblyName.Mono.cs(129,0): at System.Reflection.AssemblyName.GetFileInformationCore(String assemblyFile)
    _\src\libraries\System.Private.CoreLib\src\System\Reflection\AssemblyName.cs(148,0): at System.Reflection.AssemblyName.GetAssemblyName(String assemblyFile)
    _\src\libraries\System.Reflection\tests\AssemblyNameTests.cs(255,0): at System.Reflection.Tests.AssemblyNameTests.<>c__DisplayClass23_0.<GetAssemblyName_LockedFile>b__0()
    ----- Inner Stack Trace -----
    _\src\mono\netcore\System.Private.CoreLib\src\System\Reflection\AssemblyName.Mono.cs(129,0): at System.Reflection.AssemblyName.GetFileInformationCore(String assemblyFile)
    _\src\libraries\System.Private.CoreLib\src\System\Reflection\AssemblyName.cs(148,0): at System.Reflection.AssemblyName.GetAssemblyName(String assemblyFile)
    _\src\libraries\System.Reflection\tests\AssemblyNameTests.cs(255,0): at System.Reflection.Tests.AssemblyNameTests.<>c__DisplayClass23_0.<GetAssemblyName_LockedFile>b__0()

This test will be marked with ActiveIssue in #32592.

Activity

  1. added
    untriaged
    on Apr 3, 2020
  2. added
    runtime-mono
    on Apr 10, 2020
  3. ericstj commented on Apr 10, 2020

    @ericstj
    Member

    This looks like an exception difference in mono runtime when attempting to read AssemblyName from a locked file.

  4. danmoseley commented on Apr 10, 2020

    @danmoseley
    Contributor

    mono_error_set_simple_file_not_found (error, filename, FALSE);

  5. self-assigned this
    on Apr 10, 2020
  6. added this to the 6.0.0 milestone on Jun 22, 2020
  7. removed
    untriaged
    on Jun 22, 2020
  8. modified the milestones: 6.0.0, 7.0.0 on Jun 16, 2021
  9. ghost added
    in-pr
    on Jan 26, 2022
  10. ghost removed
    in-pr
    on Jan 26, 2022
  11. ghost locked as resolved and limited conversation to collaborators on Feb 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions