OSDN Git Service

AI 148431: Marking as broken a couple of tests
authorJorg Pleumann <nobody@android.com>
Thu, 7 May 2009 08:35:52 +0000 (01:35 -0700)
committerThe Android Open Source Project <initial-contribution@android.com>
Thu, 7 May 2009 08:35:52 +0000 (01:35 -0700)
  that tend to fail in the CTS host.
  BUG=1285921

Automated import of CL 148431

libcore/luni/src/test/java/tests/api/java/lang/ProcessManagerTest.java
libcore/luni/src/test/java/tests/api/java/lang/ProcessTest.java
libcore/nio/src/test/java/org/apache/harmony/nio/tests/java/nio/channels/ServerSocketChannelTest.java

index add793f..1d791fa 100644 (file)
@@ -16,6 +16,7 @@
 
 package tests.api.java.lang;
 
+import dalvik.annotation.BrokenTest;
 import dalvik.annotation.TestLevel;
 import dalvik.annotation.TestTargetNew;
 import dalvik.annotation.TestTargetClass;
@@ -62,6 +63,7 @@ public class ProcessManagerTest extends TestCase {
         method = "waitFor",
         args = {}
     )
+    @BrokenTest("Sporadic failures in CTS, but not in CoreTestRunner")
     public void testSleep() throws IOException {
         String[] commands = { "sleep", "1" };
         process = Runtime.getRuntime().exec(commands, null, null);
index 84bcbde..ded742f 100644 (file)
@@ -17,6 +17,7 @@
 
 package tests.api.java.lang;
 
+import dalvik.annotation.BrokenTest;
 import dalvik.annotation.TestLevel;
 import dalvik.annotation.TestTargetNew;
 import dalvik.annotation.TestTargetClass;
@@ -179,6 +180,7 @@ public class ProcessTest extends junit.framework.TestCase {
         method = "destroy",
         args = {}
     )
+    @BrokenTest("Sporadic timeouts in CTS, but not in CoreTestRunner")
     public void test_destroy() {
         String[] commands = { "ls"};            
         try {
index ad1e78f..b9b880d 100644 (file)
@@ -22,6 +22,7 @@ import dalvik.annotation.TestTargets;
 import dalvik.annotation.TestLevel;
 import dalvik.annotation.TestTargetClass;
 import dalvik.annotation.AndroidOnly;
+import dalvik.annotation.BrokenTest;
 
 import java.io.IOException;
 import java.io.InputStream;
@@ -573,6 +574,7 @@ public class ServerSocketChannelTest extends TestCase {
         method = "accept",
         args = {}
     )    
+    @BrokenTest("Sporadic timeouts in CTS, but not in CoreTestRunner")
     public void test_accept_socket_read_Block_RWLargeData() throws IOException {
         serverChannel.socket().bind(localAddr1);
         ByteBuffer buf = ByteBuffer.allocate(CAPACITY_64KB);
@@ -597,6 +599,7 @@ public class ServerSocketChannelTest extends TestCase {
         method = "accept",
         args = {}
     )    
+    @BrokenTest("Sporadic timeouts in CTS, but not in CoreTestRunner")
     public void test_accept_socket_read_NonBlock_RWLargeData()
             throws Exception {
         serverChannel.configureBlocking(false);
@@ -623,6 +626,7 @@ public class ServerSocketChannelTest extends TestCase {
         method = "accept",
         args = {}
     )
+    @BrokenTest("Sporadic timeouts in CTS, but not in CoreTestRunner")
     public void test_accept_socket_write_NonBlock_RWLargeData()
             throws Exception {
         serverChannel.configureBlocking(false);
@@ -648,6 +652,7 @@ public class ServerSocketChannelTest extends TestCase {
         method = "accept",
         args = {}
     )
+    @BrokenTest("Sporadic timeouts in CTS, but not in CoreTestRunner")
     public void test_accept_socket_write_Block_RWLargeData() throws Exception {
         serverChannel.socket().bind(localAddr1);
         byte[] writeContent = new byte[CAPACITY_64KB];