[wasm] Enable System.CodeDom.Tests test suite#39626
[wasm] Enable System.CodeDom.Tests test suite#39626akoeplinger merged 1 commit intodotnet:masterfrom
Conversation
|
Tagging subscribers to this area: @safern, @ViktorHofer |
| public void CompiledAssembly_GetWithPathToAssemblySet_ReturnsExpectedAssembly() | ||
| { | ||
| var results = new CompilerResults(null) { PathToAssembly = typeof(CompilerResultsTests).Assembly.Location }; | ||
| var results = new CompilerResults(null) { PathToAssembly = (PlatformDetection.IsBrowser ? "/" : string.Empty) + typeof(CompilerResultsTests).Assembly.Location }; |
There was a problem hiding this comment.
Is this a bug? Where the path is not rooted?
There was a problem hiding this comment.
There is the following failure:
<failure exception-type="System.ArgumentException">
<message><![CDATA[System.ArgumentException : Path \"System.CodeDom.Tests.dll\" is not an absolute path. (Parameter 'path')]]></message>
<stack-trace><![CDATA[ at System.Reflection.Assembly.LoadFile(String path)
at System.CodeDom.Compiler.CompilerResults.get_CompiledAssembly()
at System.CodeDom.Compiler.Tests.CompilerResultsTests.CompiledAssembly_GetWithPathToAssemblySet_ReturnsExpectedAssembly()
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)]]></stack-trace>
</failure>
There was a problem hiding this comment.
RIght, so shouldn't Assembly.Location return an absolute path?
There was a problem hiding this comment.
Not currently on wasm. We're still investigating.
There was a problem hiding this comment.
Yes, it should.
There was a problem hiding this comment.
I believe that someone is addressing this issue. Btw we already have the similar workaround, e.g. here https://github.com/dotnet/runtime/pull/39306/files#diff-b8c7220f6cfb2e8341450e98ff7cd5f2R21
There was a problem hiding this comment.
I see. I just wanted to make sure if we had an issue tracking this so that we don't accidentally miss it and just workaround it on the tests.
Part of #38422.