OSDN Git Service

DO NOT MERGE. CTS test cleanup. Mark tests as KnownFailures and BrokenTests.
authorBrett Chabot <brettchabot@android.com>
Thu, 5 Nov 2009 18:52:02 +0000 (10:52 -0800)
committerBrett Chabot <brettchabot@android.com>
Sat, 7 Nov 2009 00:44:59 +0000 (16:44 -0800)
libcore/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/LoggerTest.java
libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/lang/MathTest.java
libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/lang/StrictMathTest.java
libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/net/URLConnectionTest.java
libcore/luni/src/test/java/tests/api/java/io/PipedInputStreamTest.java
libcore/luni/src/test/java/tests/api/java/io/SerializationStressTest4.java
libcore/luni/src/test/java/tests/api/java/net/MulticastSocketTest.java
libcore/nio/src/test/java/org/apache/harmony/nio/tests/java/nio/channels/DatagramChannelTest.java
libcore/sql/src/test/java/org/apache/harmony/sql/tests/java/sql/DriverManagerTest.java

index f2bd62d..8a981bb 100644 (file)
@@ -37,6 +37,7 @@ import junit.framework.TestCase;
 import org.apache.harmony.logging.tests.java.util.logging.util.EnvironmentHelper;
 
 import tests.util.CallVerificationStack;
+import dalvik.annotation.KnownFailure;
 import dalvik.annotation.SideEffect;
 import dalvik.annotation.TestLevel;
 import dalvik.annotation.TestTargetClass;
@@ -4639,6 +4640,7 @@ public class LoggerTest extends TestCase {
         method = "initHandler",
         args = {}
     )
+    @KnownFailure(value="bug 2002061O")
     public void test_initHandler() throws Exception {
         File logProps = new File(LOGGING_CONFIG_FILE);
         LogManager lm = LogManager.getLogManager();
index 02bed3c..330e0b5 100644 (file)
 
 package org.apache.harmony.luni.tests.java.lang;
 
+import dalvik.annotation.KnownFailure;
 import dalvik.annotation.TestLevel;
-import dalvik.annotation.TestTargetNew;
 import dalvik.annotation.TestTargetClass;
+import dalvik.annotation.TestTargetNew;
 
 @TestTargetClass(Math.class) 
 public class MathTest extends junit.framework.TestCase {
@@ -1103,6 +1104,7 @@ public class MathTest extends junit.framework.TestCase {
         method = "tanh",
         args = {double.class}
     )
+    @KnownFailure(value = "bug 2139334")
     public void test_tanh_D() {
         // Test for special situations
         assertTrue("Should return NaN", Double.isNaN(Math.tanh(Double.NaN)));
index 137676c..c6edeb2 100644 (file)
 
 package org.apache.harmony.luni.tests.java.lang;
 
-import dalvik.annotation.TestTargets;
+import dalvik.annotation.KnownFailure;
 import dalvik.annotation.TestLevel;
-import dalvik.annotation.TestTargetNew;
 import dalvik.annotation.TestTargetClass;
+import dalvik.annotation.TestTargetNew;
+import dalvik.annotation.TestTargets;
 
 @TestTargetClass(StrictMath.class) 
 public class StrictMathTest extends junit.framework.TestCase {
@@ -1292,6 +1293,7 @@ public class StrictMathTest extends junit.framework.TestCase {
         method = "tanh",
         args = {double.class}
     )
+    @KnownFailure(value = "bug 2139334")
     public void test_tanh_D() {
         // Test for special situations
         assertTrue(Double.isNaN(StrictMath.tanh(Double.NaN)));
index 68ccb91..6077d53 100644 (file)
@@ -17,6 +17,7 @@
 package org.apache.harmony.luni.tests.java.net;
 
 import dalvik.annotation.BrokenTest;
+import dalvik.annotation.KnownFailure;
 import dalvik.annotation.TestLevel;
 import dalvik.annotation.TestTargetClass;
 import dalvik.annotation.TestTargetNew;
@@ -459,6 +460,7 @@ public class URLConnectionTest extends TestCase {
         }
     }
 
+    @KnownFailure(value="bug 2002061")
     public void testHttpPostHeaders() throws IOException {
         String path = "/" + Math.random();
         HttpURLConnection connection = (HttpURLConnection)
index 671bfe9..a6b71ed 100644 (file)
@@ -20,6 +20,7 @@ import java.io.IOException;
 import java.io.PipedInputStream;
 import java.io.PipedOutputStream;
 
+import dalvik.annotation.BrokenTest;
 import dalvik.annotation.TestLevel;
 import dalvik.annotation.TestTargetClass;
 import dalvik.annotation.TestTargetNew;
@@ -414,6 +415,7 @@ public class PipedInputStreamTest extends junit.framework.TestCase {
         method = "receive",
         args = {int.class}
     )
+    @BrokenTest(value="bug 2002061")
     public void test_receive() throws IOException {
         pis = new PipedInputStream();
         pos = new PipedOutputStream();
index 3b1a063..99ea619 100644 (file)
@@ -2667,6 +2667,7 @@ public class SerializationStressTest4 extends SerializationStressTest {
         method = "!Serialization",
         args = {}
     )
+    @KnownFailure(value="bug 2188225")
     public void test_writeObject_Proxy()
             throws ClassNotFoundException, IOException {
 
index 1429063..8c3e7f3 100644 (file)
@@ -536,6 +536,7 @@ public class MulticastSocketTest extends SocketTestCase {
         method = "joinGroup",
         args = {java.net.SocketAddress.class, java.net.NetworkInterface.class}
     )
+    @KnownFailure(value="bug 2155705")
     public void test_joinGroupLjava_net_SocketAddressLjava_net_NetworkInterface() 
                                     throws IOException, InterruptedException {
         // security manager that allows us to check that we only return the
@@ -832,6 +833,7 @@ public class MulticastSocketTest extends SocketTestCase {
         method = "leaveGroup",
         args = {java.net.SocketAddress.class, java.net.NetworkInterface.class}
     )
+    @KnownFailure(value="bug 2155705")
     public void test_leaveGroupLjava_net_SocketAddressLjava_net_NetworkInterface() {
         // security manager that allows us to check that we only return the
         // addresses that we should
index 36e0082..8a77b9d 100644 (file)
@@ -17,6 +17,7 @@
 
 package org.apache.harmony.nio.tests.java.nio.channels;
 
+import dalvik.annotation.KnownFailure;
 import dalvik.annotation.TestTargetNew;
 import dalvik.annotation.TestTargets;
 import dalvik.annotation.TestLevel;
@@ -666,6 +667,7 @@ public class DatagramChannelTest extends TestCase {
         method = "socket",
         args = {}
     )
+    @KnownFailure(value="bug 2155708")
     public void testSocket_BasicStatusBeforeConnect() throws SocketException {
         assertFalse(this.channel1.isConnected());// not connected
         DatagramSocket s1 = this.channel1.socket();
index 68ac6c5..5552f4f 100644 (file)
@@ -714,6 +714,7 @@ public class DriverManagerTest extends TestCase {
     /**
      * Regression for HARMONY-4303
      */
+    @KnownFailure(value="bug 2002061")
     public void test_initClass() throws Exception {
         String[] arg = new String[1];
         arg[0] = "org/apache/harmony/sql/tests/java/sql/TestMainForDriver";