Imported Upstream version 5.8.0.88

Former-commit-id: 4b7216ffda08448e562271ce733688e761120fc5
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2017-11-28 19:36:51 +00:00
parent 7d05485754
commit 6123a772ed
277 changed files with 4817 additions and 941 deletions

View File

@@ -176,6 +176,9 @@ namespace MonoTests.Mono.Unix.Native
}
[Test]
#if MONODROID
[ExpectedException (typeof (ArgumentOutOfRangeException))] // IPPROTO_TCP not supported
#endif
public void SockOptLinger ()
{
WithSockets (UnixAddressFamily.AF_INET, UnixSocketType.SOCK_STREAM, UnixSocketProtocol.IPPROTO_TCP, (so1, so2) => {
@@ -347,6 +350,9 @@ namespace MonoTests.Mono.Unix.Native
}
[Test]
#if MONODROID
[ExpectedException (typeof (ArgumentOutOfRangeException))] // IPPROTO_UDP not supported
#endif
public void BindConnect ()
{
WithSockets (UnixAddressFamily.AF_INET, UnixSocketType.SOCK_DGRAM, UnixSocketProtocol.IPPROTO_UDP, (so1, so2) => {
@@ -516,6 +522,9 @@ namespace MonoTests.Mono.Unix.Native
[Test]
[Category ("NotOnMac")]
#if MONODROID
[ExpectedException (typeof (ArgumentOutOfRangeException))] // SOCK_NONBLOCK, SOCK_CLOEXEC not supported
#endif
public void Accept4 ()
{
WithSockets (UnixAddressFamily.AF_UNIX, UnixSocketType.SOCK_STREAM, 0, (so1, so2) => {
@@ -553,6 +562,9 @@ namespace MonoTests.Mono.Unix.Native
}
[Test]
#if MONODROID
[ExpectedException (typeof (ArgumentOutOfRangeException))] // IPPROTO_UDP not supported
#endif
public void SendToRecvFrom ()
{
WithSockets (UnixAddressFamily.AF_INET, UnixSocketType.SOCK_DGRAM, UnixSocketProtocol.IPPROTO_UDP, (so1, so2) => {
@@ -643,6 +655,9 @@ namespace MonoTests.Mono.Unix.Native
}
[Test]
#if MONODROID
[ExpectedException (typeof (ArgumentOutOfRangeException))] // IPPROTO_UDP not supported
#endif
public unsafe void SendMsgRecvMsgAddress ()
{
WithSockets (UnixAddressFamily.AF_INET, UnixSocketType.SOCK_DGRAM, UnixSocketProtocol.IPPROTO_UDP, (so1, so2) => {