diff options
author | Rodrigo Kumpera <kumpera@gmail.com> | 2015-09-04 22:35:20 +0300 |
---|---|---|
committer | Rodrigo Kumpera <kumpera@gmail.com> | 2015-09-04 22:35:31 +0300 |
commit | f0a2b9c98cf828d586e26510400ce35070f0a29f (patch) | |
tree | cdb395f4fff22b5115c2e7f5abbfa6c1969d5864 /mcs | |
parent | fcd3f2ca2183836e4aa83d8506e9f77a09f90578 (diff) |
Fix another broken test due to OSX oddities.
Diffstat (limited to 'mcs')
-rw-r--r-- | mcs/class/Mono.Posix/Test/Mono.Unix.Native/SocketTest.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mcs/class/Mono.Posix/Test/Mono.Unix.Native/SocketTest.cs b/mcs/class/Mono.Posix/Test/Mono.Unix.Native/SocketTest.cs index 40dfe5769c0..a82ee31d61d 100644 --- a/mcs/class/Mono.Posix/Test/Mono.Unix.Native/SocketTest.cs +++ b/mcs/class/Mono.Posix/Test/Mono.Unix.Native/SocketTest.cs @@ -191,7 +191,9 @@ namespace MonoTests.Mono.Unix.Native Linger value; if (Syscall.getsockopt (so1, UnixSocketProtocol.SOL_SOCKET, UnixSocketOptionName.SO_LINGER, out value) < 0) UnixMarshal.ThrowExceptionForLastError (); - Assert.AreEqual (linger, value); + if (value.l_onoff == 0) + Assert.Fail ("Linger not enabled"); + Assert.AreEqual (linger.l_linger, value.l_linger); }); } |