txdv / LibuvSharp

.NET bindings for libuv
176 stars 41 forks source link

Status of the project & tests failing #8

Open bonesoul opened 9 years ago

bonesoul commented 9 years ago

I wanted the give a try to the project but getting some tests failing, is this an issue on my part?

System.Net.Sockets.SocketExceptionOnly one usage of each socket address (protocol/network address/port) is normally permitted
   at LibuvSharp.Ensure.Success(Int32 errorCode, Loop loop) in Ensure.cs: line 50
   at LibuvSharp.PipeListener.Bind(String name) in Pipe.cs: line 35
   at LibuvSharp.Tests.PipeFixture.OneSideCloseTest(String name) in PipeFixture.cs: line 160
   at LibuvSharp.Tests.PipeFixture.OneSideClose() in PipeFixture.cs: line 148

System.Net.Sockets.SocketExceptionOnly one usage of each socket address (protocol/network address/port) is normally permitted
   at LibuvSharp.Ensure.Success(Int32 errorCode, Loop loop) in Ensure.cs: line 50
   at LibuvSharp.PipeListener.Bind(String name) in Pipe.cs: line 35
   at LibuvSharp.Tests.PipeFixture.SimpleTest(String name) in PipeFixture.cs: line 25
   at LibuvSharp.Tests.PipeFixture.Simple() in PipeFixture.cs: line 13

Xunit.Sdk.EqualExceptionAssert.Equal() Failure
Expected: 3
Actual:   0
   at LibuvSharp.Tests.PipeFixture.StressTest(String name) in PipeFixture.cs: line 133
   at LibuvSharp.Tests.PipeFixture.Stress() in PipeFixture.cs: line 81

LibuvSharp.UVExceptionENOTCONN(31): socket is not connected
   at LibuvSharp.Ensure.Success(Int32 errorCode, Loop loop) in Ensure.cs: line 50
   at LibuvSharp.UVStream.Resume() in UVStream.cs: line 81
   at LibuvSharp.Tests.ProcessFixture.ProcessSpawnTest(String command, Action`1 callback) in ProcessFixture.cs: line 50
   at LibuvSharp.Tests.ProcessFixture.ProcessSpawn() in ProcessFixture.cs: line 66

Xunit.Sdk.TrueExceptionAssert.True() Failure
   at LibuvSharp.Tests.TcpFixture.PeerAndSockname() in TcpFixture.cs: line 303

System.Net.Sockets.SocketExceptionOnly one usage of each socket address (protocol/network address/port) is normally permitted
   at LibuvSharp.Ensure.Success(Int32 errorCode, Loop loop) in Ensure.cs: line 50
   at LibuvSharp.Listener`1.Listen(Int32 backlog) in Listener.cs: line 28
   at LibuvSharp.Listener`1.Listen() in Listener.cs: line 33
   at LibuvSharp.Tests.TcpFixture.SimpleTest(IPEndPoint ep) in TcpFixture.cs: line 41
   at LibuvSharp.Tests.TcpFixture.Simple() in TcpFixture.cs: line 15

Xunit.Sdk.EqualExceptionAssert.Equal() Failure
Position: First difference is at position 20
Expected: PINGPINGPINGPINGPINGPINGPINGPINGPINGPING
Actual:   PINGPINGPINGPINGPING
   at LibuvSharp.Tests.TcpFixture.<>c__DisplayClass16.<>c__DisplayClass18.<StressTest>b__e(String str) in TcpFixture.cs: line 107
   at LibuvSharp.IUVStreamExtensions.<>c__DisplayClass1.<Read>b__0(ArraySegment`1 data) in IUVStreamExtensions.cs: line 10
   at LibuvSharp.UVStream.OnData(ArraySegment`1 data) in UVStream.cs: line 140
   at LibuvSharp.UVStream.read_callback(IntPtr stream, IntPtr size) in UVStream.cs: line 115
   at LibuvSharp.UVStream.read_callback_w(IntPtr stream, IntPtr size, WindowsBufferStruct buf) in UVStream.cs: line 99
   at LibuvSharp.Loop.uv_run(LoopSafeHandle loop, uv_run_mode mode)
   at LibuvSharp.Loop.<Run>b__2() in Loop.cs: line 146
   at LibuvSharp.Loop.RunGuard(Action action) in Loop.cs: line 127
   at LibuvSharp.Loop.Run() in Loop.cs: line 146
   at LibuvSharp.Tests.TcpFixture.StressTest(IPEndPoint ep) in TcpFixture.cs: line 136
   at LibuvSharp.Tests.TcpFixture.Stress() in TcpFixture.cs: line 85

Xunit.Sdk.NotEqualExceptionAssert.NotEqual() Failure
   at LibuvSharp.Tests.ThreadingFixture.LoopBlocking() in ThreadingFixture.cs: line 20

Xunit.Sdk.TrueExceptionAssert.True() Failure
   at LibuvSharp.Tests.TimerFixture.Simple(Int32 times, Int32 spawn) in TimerFixture.cs: line 26

Xunit.Sdk.TrueExceptionAssert.True() Failure
   at LibuvSharp.Tests.TimerFixture.Simple(Int32 times, Int32 spawn) in TimerFixture.cs: line 26

Xunit.Sdk.TrueExceptionAssert.True() Failure
   at LibuvSharp.Tests.TimerFixture.Simple(Int32 times, Int32 spawn) in TimerFixture.cs: line 26

Xunit.Sdk.EqualExceptionAssert.Equal() Failure
Expected: 2
Actual:   0
   at LibuvSharp.Tests.UdpFixture.RunTest(IPEndPoint ep) in UdpFixture.cs: line 62
   at LibuvSharp.Tests.UdpFixture.Run() in UdpFixture.cs: line 13
txdv commented 9 years ago

Are you on windows?

bonesoul commented 9 years ago

Yes

txdv commented 9 years ago

I haven't come around to fix the windows issue. I have to sit down at my main PC to actually do it, since windows is involved and I am currently stuck with some low end devices which run only linux decently (vacation at parents). I'll be back around January 12 and I'll push the change.

This guy claims that this fixes it: https://github.com/txdv/LibuvSharp/issues/7#issuecomment-63817118

txdv commented 9 years ago

Hey, I justed ran the test suit and the tests only fail on the ProcessFIxture(different output format, I have to write a better test for it) and IPCFixture (EACCESS - you can't exchange file descriptors in the same process).