diff options
author | Jorg Pleumann <nobody@android.com> | 2009-05-11 10:10:42 -0700 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-05-11 10:10:42 -0700 |
commit | 5f5efac11611ee8d68d774ca94b49e540de44d21 (patch) | |
tree | 45d925c129afce3b3aabc53157eb98470bcc807b /luni | |
parent | 7670301ac11ebcfb9a188d02a7f7d63ff93a136a (diff) | |
download | libcore-5f5efac11611ee8d68d774ca94b49e540de44d21.zip libcore-5f5efac11611ee8d68d774ca94b49e540de44d21.tar.gz libcore-5f5efac11611ee8d68d774ca94b49e540de44d21.tar.bz2 |
AI 148670: More tests that need to be marked broken, since
they behave differently in CTS and plain VM.
Hopefully the last ones...
BUG=1285921
Automated import of CL 148670
Diffstat (limited to 'luni')
3 files changed, 6 insertions, 0 deletions
diff --git a/luni/src/test/java/org/apache/harmony/luni/tests/java/net/HttpURLConnectionTest.java b/luni/src/test/java/org/apache/harmony/luni/tests/java/net/HttpURLConnectionTest.java index 968a056..a655c4f 100644 --- a/luni/src/test/java/org/apache/harmony/luni/tests/java/net/HttpURLConnectionTest.java +++ b/luni/src/test/java/org/apache/harmony/luni/tests/java/net/HttpURLConnectionTest.java @@ -21,6 +21,7 @@ import dalvik.annotation.TestTargetNew; import dalvik.annotation.TestTargets; import dalvik.annotation.TestLevel; import dalvik.annotation.TestTargetClass; +import dalvik.annotation.BrokenTest; import java.io.IOException; import java.io.InputStream; @@ -128,6 +129,7 @@ public class HttpURLConnectionTest extends junit.framework.TestCase { method = "getHeaderFields", args = {} ) + @BrokenTest("Fails in CTS, passes in CoreTestRunner") public void test_getHeaderFields() throws Exception { url = new URL("http://" + Support_Configuration.testURL); uc = (HttpURLConnection) url.openConnection(); diff --git a/luni/src/test/java/org/apache/harmony/luni/tests/java/net/URLConnectionTest.java b/luni/src/test/java/org/apache/harmony/luni/tests/java/net/URLConnectionTest.java index 08e90bd..c803d3b 100644 --- a/luni/src/test/java/org/apache/harmony/luni/tests/java/net/URLConnectionTest.java +++ b/luni/src/test/java/org/apache/harmony/luni/tests/java/net/URLConnectionTest.java @@ -16,6 +16,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; @@ -672,6 +673,7 @@ public class URLConnectionTest extends TestCase { method = "getContentEncoding", args = {} ) + @BrokenTest("Fails in CTS, passes in CoreTestRunner") public void test_getContentEncoding() throws IOException { // faulty setup try { diff --git a/luni/src/test/java/tests/api/java/util/TimeZoneTest.java b/luni/src/test/java/tests/api/java/util/TimeZoneTest.java index 891e9b8..efdb8a1 100644 --- a/luni/src/test/java/tests/api/java/util/TimeZoneTest.java +++ b/luni/src/test/java/tests/api/java/util/TimeZoneTest.java @@ -17,6 +17,7 @@ package tests.api.java.util; +import dalvik.annotation.BrokenTest; import dalvik.annotation.TestTargetNew; import dalvik.annotation.TestTargets; import dalvik.annotation.TestLevel; @@ -195,6 +196,7 @@ public class TimeZoneTest extends junit.framework.TestCase { method = "setDefault", args = {java.util.TimeZone.class} ) + @BrokenTest("Runner sets timezone before test, hence old value != default") public void test_setDefaultLjava_util_TimeZone() { TimeZone oldDefault = TimeZone.getDefault(); TimeZone zone = new SimpleTimeZone(45, "TEST"); |