runtime icon indicating copy to clipboard operation
runtime copied to clipboard

Add tests for ICustomMarshaler support

Open eerhardt opened this issue 9 years ago • 10 comments

Download and unzip: CustomMarshaler.zip

  1. 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
  2. dotnet restore
  3. 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

eerhardt avatar Feb 02 '17 22:02 eerhardt

https://github.com/dotnet/corefx/pull/15769 should fix this issue.

shrah avatar Feb 03 '17 21:02 shrah

We should add interop test for this to CoreCLR before closing.

jkotas avatar Feb 03 '17 21:02 jkotas

@shrah Can you look into adding the test?

yizhang82 avatar Apr 18 '17 01:04 yizhang82

Test only. Not blocking 2.0

yizhang82 avatar Apr 26 '17 20:04 yizhang82

@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-zz avatar Apr 27 '17 06:04 tijoytom-zz

@tijoytom Yep. I remember the reason was that coreclr has better native test support. @hughbe Are you planning to give this another try?

yizhang82 avatar Apr 27 '17 06:04 yizhang82

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 avatar Apr 27 '17 06:04 hughbe

@hughbe Awesome. Really appreciate your help making the product better! @ericstj Do you have suggestions on how to increase the nuget restore timeout?

yizhang82 avatar Apr 27 '17 06:04 yizhang82

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

hughbe avatar Apr 27 '17 12:04 hughbe

Tests for ICustomMarshaler were added in dotnet/coreclr#19195 so we can close this.

jkoritzinsky avatar Dec 03 '18 19:12 jkoritzinsky