Add tests for ICustomMarshaler support
Download and unzip: CustomMarshaler.zip
- Install a "2.0" CLI - Here's the one I used https://dotnetcli.blob.core.windows.net/dotnet/Sdk/2.0.0-alpha-004631/dotnet-dev-win-x64.2.0.0-alpha-004631.zip
- dotnet restore
- dotnet run
Unhandled Exception: System.Exception: Custom marshaler 'Mono.Unix.Native.FileNameMarshaler' does no
t implement the ICustomMarshaler interface.
at System.StubHelpers.StubHelpers.CreateCustomMarshalerHelper(IntPtr pMD, Int32 paramToken, IntPt
r hndManagedType)
at ConsoleApp.Program.rename(String oldpath, String newpath)
at ConsoleApp.Program.Main(String[] args) in F:\DotNetTest\CustomMarshaler\Program.cs:line 11
https://github.com/dotnet/corefx/pull/15769 should fix this issue.
We should add interop test for this to CoreCLR before closing.
@shrah Can you look into adding the test?
Test only. Not blocking 2.0
@hughbe wrote this test in corefx , but i was decided to move it coreclr, guess it never happened. https://github.com/dotnet/corefx/pull/17804
@tijoytom Yep. I remember the reason was that coreclr has better native test support. @hughbe Are you planning to give this another try?
Yeah I was, unfortunately my internet at home (I live in cambodia) is too slow to restore nuget packages - times out after 60s. Never got round to doing this in a cafe or at work. Will get something out soon!
@hughbe Awesome. Really appreciate your help making the product better! @ericstj Do you have suggestions on how to increase the nuget restore timeout?
The restore timeout for dotnet restore can't be customised unfortunately. I've got decently internet but it varies minute per minute so I can actually download the packages of there was no timeout. No biggie though
Tests for ICustomMarshaler were added in dotnet/coreclr#19195 so we can close this.