You've already forked linux-packaging-mono
Imported Upstream version 6.12.0.86
Former-commit-id: 7a84ce7d08c42c458ac8e74b27186ca863315d79
This commit is contained in:
parent
92747312ea
commit
0b380204a4
@@ -38,7 +38,7 @@ namespace MonoTests.System.Net {
|
||||
public class HttpListenerPrefixCollectionTest {
|
||||
// NL -> Not listening -> tests when listener.IsListening == false
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
#if FEATURE_NO_BSD_SOCKETS && !WASM
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void NL_DefaultProperties ()
|
||||
@@ -51,7 +51,7 @@ namespace MonoTests.System.Net {
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
#if FEATURE_NO_BSD_SOCKETS && !WASM
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void DefaultProperties ()
|
||||
@@ -100,7 +100,7 @@ namespace MonoTests.System.Net {
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
#if FEATURE_NO_BSD_SOCKETS && !WASM
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void EndsWithSlash ()
|
||||
@@ -110,7 +110,7 @@ namespace MonoTests.System.Net {
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
#if FEATURE_NO_BSD_SOCKETS && !WASM
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void DifferentPath ()
|
||||
@@ -122,7 +122,7 @@ namespace MonoTests.System.Net {
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
#if FEATURE_NO_BSD_SOCKETS && !WASM
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void NL_Clear ()
|
||||
@@ -133,7 +133,7 @@ namespace MonoTests.System.Net {
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
#if FEATURE_NO_BSD_SOCKETS && !WASM
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void NL_Remove ()
|
||||
@@ -144,7 +144,7 @@ namespace MonoTests.System.Net {
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
#if FEATURE_NO_BSD_SOCKETS && !WASM
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void NL_RemoveBadUri ()
|
||||
@@ -155,7 +155,7 @@ namespace MonoTests.System.Net {
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
#if FEATURE_NO_BSD_SOCKETS && !WASM
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#else
|
||||
[ExpectedException (typeof (ArgumentException))]
|
||||
@@ -168,7 +168,7 @@ namespace MonoTests.System.Net {
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
#if FEATURE_NO_BSD_SOCKETS && !WASM
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#else
|
||||
[ExpectedException (typeof (ArgumentException))]
|
||||
@@ -180,7 +180,7 @@ namespace MonoTests.System.Net {
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
#if FEATURE_NO_BSD_SOCKETS && !WASM
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void MultipleSlashes ()
|
||||
@@ -196,7 +196,7 @@ namespace MonoTests.System.Net {
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
#if FEATURE_NO_BSD_SOCKETS && !WASM
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void PercentSign ()
|
||||
@@ -212,7 +212,7 @@ namespace MonoTests.System.Net {
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
#if FEATURE_NO_BSD_SOCKETS && !WASM
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void Disposed1 ()
|
||||
@@ -226,7 +226,7 @@ namespace MonoTests.System.Net {
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
#if FEATURE_NO_BSD_SOCKETS && !WASM
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#else
|
||||
[ExpectedException (typeof (ObjectDisposedException))]
|
||||
@@ -240,7 +240,7 @@ namespace MonoTests.System.Net {
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
#if FEATURE_NO_BSD_SOCKETS && !WASM
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#else
|
||||
[ExpectedException (typeof (ObjectDisposedException))]
|
||||
@@ -254,7 +254,7 @@ namespace MonoTests.System.Net {
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
#if FEATURE_NO_BSD_SOCKETS && !WASM
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#else
|
||||
[ExpectedException (typeof (ObjectDisposedException))]
|
||||
@@ -268,7 +268,7 @@ namespace MonoTests.System.Net {
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
#if FEATURE_NO_BSD_SOCKETS && !WASM
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#else
|
||||
[ExpectedException (typeof (ObjectDisposedException))]
|
||||
@@ -283,7 +283,7 @@ namespace MonoTests.System.Net {
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
#if FEATURE_NO_BSD_SOCKETS && !WASM
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void Disposed6 ()
|
||||
@@ -299,7 +299,7 @@ namespace MonoTests.System.Net {
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
#if FEATURE_NO_BSD_SOCKETS && !WASM
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void Disposed7 ()
|
||||
|
@@ -39,7 +39,7 @@ namespace MonoTests.System.Net {
|
||||
[TestFixture]
|
||||
public class HttpListenerTest {
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
#if FEATURE_NO_BSD_SOCKETS && !WASM
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void DefaultProperties ()
|
||||
@@ -55,7 +55,7 @@ namespace MonoTests.System.Net {
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
#if FEATURE_NO_BSD_SOCKETS && !WASM
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void Start1 ()
|
||||
@@ -65,7 +65,7 @@ namespace MonoTests.System.Net {
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
#if FEATURE_NO_BSD_SOCKETS && !WASM
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void Stop1 ()
|
||||
@@ -75,7 +75,7 @@ namespace MonoTests.System.Net {
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
#if FEATURE_NO_BSD_SOCKETS && !WASM
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#else
|
||||
[ExpectedException (typeof (InvalidOperationException))]
|
||||
@@ -88,7 +88,7 @@ namespace MonoTests.System.Net {
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
#if FEATURE_NO_BSD_SOCKETS && !WASM
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#else
|
||||
[ExpectedException (typeof (InvalidOperationException))]
|
||||
@@ -102,7 +102,7 @@ namespace MonoTests.System.Net {
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
#if FEATURE_NO_BSD_SOCKETS && !WASM
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#else
|
||||
[ExpectedException (typeof (InvalidOperationException))]
|
||||
@@ -115,7 +115,7 @@ namespace MonoTests.System.Net {
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
#if FEATURE_NO_BSD_SOCKETS && !WASM
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void BeginGetContext2 ()
|
||||
@@ -227,7 +227,7 @@ namespace MonoTests.System.Net {
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
#if FEATURE_NO_BSD_SOCKETS && !WASM
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void CloseBeforeStart ()
|
||||
@@ -271,7 +271,7 @@ namespace MonoTests.System.Net {
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
#if FEATURE_NO_BSD_SOCKETS && !WASM
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void AbortBeforeStart ()
|
||||
@@ -292,7 +292,7 @@ namespace MonoTests.System.Net {
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
#if FEATURE_NO_BSD_SOCKETS && !WASM
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void PropertiesWhenClosed1 ()
|
||||
@@ -308,7 +308,7 @@ namespace MonoTests.System.Net {
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
#if FEATURE_NO_BSD_SOCKETS && !WASM
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#else
|
||||
[ExpectedException (typeof (ObjectDisposedException))]
|
||||
@@ -321,7 +321,7 @@ namespace MonoTests.System.Net {
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
#if FEATURE_NO_BSD_SOCKETS && !WASM
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#else
|
||||
[ExpectedException (typeof (ObjectDisposedException))]
|
||||
@@ -334,7 +334,7 @@ namespace MonoTests.System.Net {
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
#if FEATURE_NO_BSD_SOCKETS && !WASM
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#else
|
||||
[ExpectedException (typeof (ObjectDisposedException))]
|
||||
@@ -347,7 +347,8 @@ namespace MonoTests.System.Net {
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[Category ("NotWasm")]
|
||||
#if FEATURE_NO_BSD_SOCKETS && !WASM
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#else
|
||||
[ExpectedException (typeof (ObjectDisposedException))]
|
||||
@@ -360,7 +361,7 @@ namespace MonoTests.System.Net {
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
#if FEATURE_NO_BSD_SOCKETS && !WASM
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#else
|
||||
[ExpectedException (typeof (ObjectDisposedException))]
|
||||
@@ -373,7 +374,7 @@ namespace MonoTests.System.Net {
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
#if FEATURE_NO_BSD_SOCKETS && !WASM
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#else
|
||||
[ExpectedException (typeof (ObjectDisposedException))]
|
||||
@@ -386,7 +387,7 @@ namespace MonoTests.System.Net {
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
#if FEATURE_NO_BSD_SOCKETS && !WASM
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void PropertiesWhenClosed3 ()
|
||||
|
@@ -209,11 +209,13 @@ public class ServicePointTest
|
||||
|
||||
Assert.AreSame (host0, host1, "HostEntry should result in the same IPHostEntry object.");
|
||||
|
||||
#if !WASM
|
||||
Thread.Sleep (dnsRefreshTimeout * 2);
|
||||
host2 = hostEntryProperty.GetValue (sp, null) as IPHostEntry;
|
||||
|
||||
Assert.AreNotSame(host0, host2, "HostEntry should result in a new IPHostEntry " +
|
||||
"object when DnsRefreshTimeout is reached.");
|
||||
#endif
|
||||
}
|
||||
|
||||
// Debug code not used now, but could be useful later
|
||||
|
@@ -41,6 +41,7 @@ namespace MonoTests.System.Net
|
||||
public class WebClientTestAsync
|
||||
{
|
||||
[Test]
|
||||
[Category("NotWasm")]
|
||||
[Category("Async")]
|
||||
[Category("AndroidNotWorking")] // Attempts to access the test dll which won't work on Android
|
||||
[Category("BitcodeNotSupported")]
|
||||
|
@@ -66,6 +66,9 @@ namespace MonoTests.System.Net
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if WASM
|
||||
[Ignore ("WASM - libc issue")]
|
||||
#endif
|
||||
public void BypassArrayList ()
|
||||
{
|
||||
Uri proxy1 = new Uri ("http://proxy.contoso.com");
|
||||
@@ -124,6 +127,9 @@ namespace MonoTests.System.Net
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if WASM
|
||||
[Ignore ("WASM - libc issue")]
|
||||
#endif
|
||||
public void IsByPassed ()
|
||||
{
|
||||
WebProxy p = new WebProxy ("http://proxy.contoso.com", true);
|
||||
|
@@ -267,7 +267,7 @@ namespace MonoTests.System.Net {
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
#if FEATURE_NO_BSD_SOCKETS && !WASM
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void DefaultWebProxy ()
|
||||
|
Reference in New Issue
Block a user