Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
MaximLipnin opened this issue Apr 3, 2020 · 3 comments · Fixed by #63915
Milestone

Comments

@MaximLipnin
Copy link
Contributor

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.

@Dotnet-GitSync-Bot Dotnet-GitSync-Bot added area-System.Reflection untriaged New issue has not been triaged by the area owner labels Apr 3, 2020
@danmoseley danmoseley added runtime-mono specific to the Mono runtime os-windows labels Apr 10, 2020
@ericstj
Copy link
Member

ericstj commented Apr 10, 2020

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

@ghost
Copy link

ghost commented Apr 10, 2020

Tagging @CoffeeFlux as an area owner

@danmoseley
Copy link
Member

mono_error_set_simple_file_not_found (error, filename, FALSE);

@CoffeeFlux CoffeeFlux self-assigned this Apr 10, 2020
@lambdageek lambdageek added this to the 6.0.0 milestone Jun 22, 2020
@lambdageek lambdageek removed the untriaged New issue has not been triaged by the area owner label Jun 22, 2020
@SamMonoRT SamMonoRT modified the milestones: 6.0.0, 7.0.0 Jun 16, 2021
@ghost ghost added the in-pr There is an active PR which will close this issue when it is merged label Jan 26, 2022
@ghost ghost removed the in-pr There is an active PR which will close this issue when it is merged label Jan 26, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Feb 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants