exclude stuff for TARGET_JVM
authorAndrew Skiba <andrews@mono-cvs.ximian.com>
Wed, 15 Nov 2006 16:26:52 +0000 (16:26 -0000)
committerAndrew Skiba <andrews@mono-cvs.ximian.com>
Wed, 15 Nov 2006 16:26:52 +0000 (16:26 -0000)
svn path=/trunk/mcs/; revision=67935

mcs/class/System/Test/System.Net/HttpWebRequestTest.cs

index aa5b32845ad63f99094fa0881bde7077934ce8c6..d3c34d9ae506565d211465819023f8b6ec4b6232 100644 (file)
@@ -20,9 +20,10 @@ using System.Security.Cryptography;
 using System.Security.Cryptography.X509Certificates;
 using System.Text;
 using System.Threading;
-
+#if !TARGET_JVM
 using Mono.Security.Authenticode;
 using Mono.Security.Protocol.Tls;
+#endif
 
 namespace MonoTests.System.Net
 {
@@ -91,7 +92,7 @@ namespace MonoTests.System.Net
                                Assertion.AssertEquals ("#04", true, object.ReferenceEquals (one, two));
                        }
                }
-
+#if !TARGET_JVM //NotWorking
                [Test]
                public void SslClientBlock ()
                {
@@ -123,8 +124,11 @@ namespace MonoTests.System.Net
                                ServicePointManager.CertificatePolicy = null;
                        }
                }
-
+#endif
                [Test]
+#if TARGET_JVM
+               [Category("NotWorking")]
+#endif
                public void Missing_ContentEncoding ()
                {
                        ServicePointManager.CertificatePolicy = new AcceptAllPolicy ();
@@ -146,7 +150,10 @@ namespace MonoTests.System.Net
                        }
                }
 
-               [Test]
+               [Test]\r
+#if TARGET_JVM\r
+               [Category ("NotWorking")]
+#endif
                public void BadServer_ChunkedClose ()
                {
                        // The server will send a chunked response without a 'last-chunked' mark
@@ -240,9 +247,10 @@ namespace MonoTests.System.Net
                                get { return error; }
                        }
 
-                       protected abstract void Run ();
-               }
-
+                       protected abstract void Run ();\r
+               }\r
+\r
+#if !TARGET_JVM
                class SslHttpServer : HttpServer {
                        X509Certificate _certificate;
 
@@ -375,6 +383,7 @@ namespace MonoTests.System.Net
                                238, 60, 227, 77, 217, 93, 117, 122, 111, 46, 173, 113, 
                        };
                }
+#endif\r
        }
 }