summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--expectations/knownfailures.txt26
-rw-r--r--luni/src/test/java/libcore/java/lang/OldRuntimeTest.java2
-rw-r--r--luni/src/test/java/libcore/java/lang/reflect/OldGenericReflectionCornerCases.java3
-rw-r--r--luni/src/test/java/libcore/java/lang/reflect/OldGenericTypesTest.java2
-rw-r--r--luni/src/test/java/libcore/xml/DeclarationTest.java4
-rw-r--r--luni/src/test/java/libcore/xml/DomTest.java9
-rw-r--r--luni/src/test/java/libcore/xml/NormalizeTest.java2
-rw-r--r--luni/src/test/java/libcore/xml/SaxTest.java2
8 files changed, 0 insertions, 50 deletions
diff --git a/expectations/knownfailures.txt b/expectations/knownfailures.txt
index 7915a10..d8f9766 100644
--- a/expectations/knownfailures.txt
+++ b/expectations/knownfailures.txt
@@ -312,16 +312,6 @@
modes: [ "host" ]
},
{
- description: "Fails in CTS but passes under run-core-tests",
- result: EXEC_FAILED,
- name: "libcore.java.io.OldFileTest#test_deleteOnExit"
-},
-{
- description: "Fails in CTS but passes under run-core-tests",
- result: EXEC_FAILED,
- name: "tests.api.java.io.SerializationStressTest4#test_writeObject_Proxy"
-},
-{
description: "Defining classes from byte[] not supported in Android",
result: EXEC_FAILED,
name: "libcore.java.lang.OldClassTest#test_getClasses_subtest0"
@@ -332,14 +322,6 @@
name: "libcore.java.lang.OldClassTest#test_getProtectionDomain"
},
{
- description: "Fails in CTS but passes under run-core-tests",
- result: EXEC_FAILED,
- names: [
- "tests.api.java.net.MulticastSocketTest#test_joinGroupLjava_net_SocketAddressLjava_net_NetworkInterface",
- "tests.api.java.util.FormatterTest#test_formatLjava_lang_String$Ljava_lang_Object_DateTimeConversion"
- ]
-},
-{
description: "Runtime.getRuntime().traceMethodCalls(true) doesn't return on the host, fails in CTS",
bug: 3447964,
name: "libcore.java.lang.OldRuntimeTest#test_traceMethodCalls"
@@ -351,14 +333,6 @@
name: "tests.api.java.util.ResourceBundleTest#test_getBundleLjava_lang_StringLjava_util_LocaleLjava_lang_ClassLoader"
},
{
- description: "Fails in CTS but passes under run-core-tests",
- result: EXEC_FAILED,
- names: [
- "tests.api.java.nio.charset.CharsetProviderTest#testForName_InsufficientPrivilege",
- "tests.api.java.nio.charset.CharsetProviderTest#testIsSupported_And_ForName_NormalProvider"
- ]
-},
-{
description: "Fails (probably) because no protection domain is set.",
result: EXEC_FAILED,
names: [
diff --git a/luni/src/test/java/libcore/java/lang/OldRuntimeTest.java b/luni/src/test/java/libcore/java/lang/OldRuntimeTest.java
index 4b692d7..0926569 100644
--- a/luni/src/test/java/libcore/java/lang/OldRuntimeTest.java
+++ b/luni/src/test/java/libcore/java/lang/OldRuntimeTest.java
@@ -17,7 +17,6 @@
package libcore.java.lang;
-import dalvik.annotation.KnownFailure;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.File;
@@ -462,7 +461,6 @@ public class OldRuntimeTest extends junit.framework.TestCase {
Runtime.getRuntime().traceInstructions(false);
}
- @KnownFailure("Fails in CTS but passes under run-core-tests")
public void test_traceMethodCalls() {
try {
Runtime.getRuntime().traceMethodCalls(false);
diff --git a/luni/src/test/java/libcore/java/lang/reflect/OldGenericReflectionCornerCases.java b/luni/src/test/java/libcore/java/lang/reflect/OldGenericReflectionCornerCases.java
index 907b8eb..168a00d 100644
--- a/luni/src/test/java/libcore/java/lang/reflect/OldGenericReflectionCornerCases.java
+++ b/luni/src/test/java/libcore/java/lang/reflect/OldGenericReflectionCornerCases.java
@@ -16,7 +16,6 @@
package libcore.java.lang.reflect;
-import dalvik.annotation.KnownFailure;
import java.lang.reflect.Method;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
@@ -122,7 +121,6 @@ public class OldGenericReflectionCornerCases extends GenericReflectionTestsBase
void multipleBoundedWildcardUnEquality(Pair<? extends T, ? super T> param) {}
}
@SuppressWarnings("unchecked")
- @KnownFailure("Fails in CTS but passes under run-core-tests")
public void testMultipleBoundedWildcardUnEquality() throws Exception {
Class<? extends MultipleBoundedWildcardUnEquality> clazz = MultipleBoundedWildcardUnEquality.class;
@@ -178,7 +176,6 @@ public class OldGenericReflectionCornerCases extends GenericReflectionTestsBase
void multipleBoundedWildcardEquality(Pair<? extends T, ? extends T> param) {}
}
@SuppressWarnings("unchecked")
- @KnownFailure("Fails in CTS but passes under run-core-tests")
public void testMultipleBoundedWildcard() throws Exception {
Class<? extends MultipleBoundedWildcardEquality> clazz = MultipleBoundedWildcardEquality.class;
diff --git a/luni/src/test/java/libcore/java/lang/reflect/OldGenericTypesTest.java b/luni/src/test/java/libcore/java/lang/reflect/OldGenericTypesTest.java
index f93b683..69eff4f 100644
--- a/luni/src/test/java/libcore/java/lang/reflect/OldGenericTypesTest.java
+++ b/luni/src/test/java/libcore/java/lang/reflect/OldGenericTypesTest.java
@@ -16,7 +16,6 @@
package libcore.java.lang.reflect;
-import dalvik.annotation.KnownFailure;
import java.lang.reflect.Constructor;
import java.lang.reflect.Method;
import java.lang.reflect.ParameterizedType;
@@ -160,7 +159,6 @@ public class OldGenericTypesTest extends GenericReflectionTestsBase {
assertEquals(typeVariableT, boundS);
}
@SuppressWarnings("unchecked")
- @KnownFailure("Fails in CTS but passes under run-core-tests")
public void testSimpleInheritance() throws Exception {
Class<? extends SimpleInheritance> clazz = SimpleInheritance.class;
TypeVariable<Class> subTypeVariable = getTypeParameter(clazz);
diff --git a/luni/src/test/java/libcore/xml/DeclarationTest.java b/luni/src/test/java/libcore/xml/DeclarationTest.java
index 24cb32c..4cd049f 100644
--- a/luni/src/test/java/libcore/xml/DeclarationTest.java
+++ b/luni/src/test/java/libcore/xml/DeclarationTest.java
@@ -16,7 +16,6 @@
package libcore.xml;
-import dalvik.annotation.KnownFailure;
import junit.framework.TestCase;
import org.w3c.dom.Document;
import org.xml.sax.InputSource;
@@ -79,21 +78,18 @@ public class DeclarationTest extends TestCase {
assertEquals("ISO-8859-1", documentB.getInputEncoding());
}
- @KnownFailure("Dalvik doesn't parse the XML declaration")
public void testGetXmlEncoding() throws Exception {
String message = "This implementation doesn't parse the encoding from the XML declaration";
assertEquals(message, "ISO-8859-1", documentA.getXmlEncoding());
assertEquals(message, "US-ASCII", documentB.getXmlEncoding());
}
- @KnownFailure("Dalvik doesn't parse the XML declaration")
public void testGetXmlVersion() throws Exception {
String message = "This implementation doesn't parse the version from the XML declaration";
assertEquals(message, "1.0", documentA.getXmlVersion());
assertEquals(message, "1.1", documentB.getXmlVersion());
}
- @KnownFailure("Dalvik doesn't parse the XML declaration")
public void testGetXmlStandalone() throws Exception {
String message = "This implementation doesn't parse standalone from the XML declaration";
assertEquals(message, false, documentA.getXmlStandalone());
diff --git a/luni/src/test/java/libcore/xml/DomTest.java b/luni/src/test/java/libcore/xml/DomTest.java
index 79440f5..88da565 100644
--- a/luni/src/test/java/libcore/xml/DomTest.java
+++ b/luni/src/test/java/libcore/xml/DomTest.java
@@ -16,7 +16,6 @@
package libcore.xml;
-import dalvik.annotation.KnownFailure;
import java.io.ByteArrayInputStream;
import java.io.File;
import java.io.FileWriter;
@@ -186,7 +185,6 @@ public class DomTest extends TestCase {
* Android's parsed DOM doesn't include entity declarations. These nodes will
* only be tested for implementations that support them.
*/
- @KnownFailure("Dalvik doesn't parse entity declarations")
public void testEntityDeclarations() {
assertNotNull("This implementation does not parse entity declarations", sp);
}
@@ -195,7 +193,6 @@ public class DomTest extends TestCase {
* Android's parsed DOM doesn't include notations. These nodes will only be
* tested for implementations that support them.
*/
- @KnownFailure("Dalvik doesn't parse notations")
public void testNotations() {
assertNotNull("This implementation does not parse notations", png);
}
@@ -555,12 +552,10 @@ public class DomTest extends TestCase {
assertNoFeature("XMLVersion", "2.0");
}
- @KnownFailure("Dalvik doesn't support load/save")
public void testLoadSaveFeature() {
assertFeature("LS", "3.0");
}
- @KnownFailure("Dalvik doesn't support the element traversal feature")
public void testElementTraversalFeature() {
assertFeature("ElementTraversal", "1.0");
}
@@ -657,7 +652,6 @@ public class DomTest extends TestCase {
assertFalse(text.isElementContentWhitespace());
}
- @KnownFailure("Dalvik doesn't recognize element content whitespace")
public void testIsElementContentWhitespaceWithDeclaration() throws Exception {
String xml = "<!DOCTYPE menu [\n"
+ " <!ELEMENT menu (item)*>\n"
@@ -691,7 +685,6 @@ public class DomTest extends TestCase {
assertEquals("60%", vitamincText.getWholeText());
}
- @KnownFailure("Dalvik doesn't resolve entity references")
public void testGetWholeTextWithEntityReference() {
EntityReference spReference = document.createEntityReference("sp");
description.insertBefore(spReference, descriptionText2);
@@ -1241,7 +1234,6 @@ public class DomTest extends TestCase {
assertNull(document.getElementById("g"));
}
- @KnownFailure("Dalvik treats id attributes as identifiers")
public void testAttributeNamedIdIsNotAnIdByDefault() {
String message = "This implementation incorrectly interprets the "
+ "\"id\" attribute as an identifier by default.";
@@ -1385,7 +1377,6 @@ public class DomTest extends TestCase {
1, document.getChildNodes().getLength());
}
- @KnownFailure("Dalvik document nodes accept arbitrary child nodes")
public void testDocumentAddChild()
throws IOException, SAXException {
try {
diff --git a/luni/src/test/java/libcore/xml/NormalizeTest.java b/luni/src/test/java/libcore/xml/NormalizeTest.java
index 5e539f7..59a529d 100644
--- a/luni/src/test/java/libcore/xml/NormalizeTest.java
+++ b/luni/src/test/java/libcore/xml/NormalizeTest.java
@@ -16,7 +16,6 @@
package libcore.xml;
-import dalvik.annotation.KnownFailure;
import junit.framework.TestCase;
import org.w3c.dom.CDATASection;
import org.w3c.dom.Comment;
@@ -205,7 +204,6 @@ public class NormalizeTest extends TestCase {
* This fails under the RI because setParameter() succeeds even though
* canSetParameter() returns false.
*/
- @KnownFailure("Dalvik doesn't honor the schema-type parameter")
public void testSchemaTypeDtd() {
assertUnsupported("schema-type", "http://www.w3.org/TR/REC-xml"); // supported in RI v6
}
diff --git a/luni/src/test/java/libcore/xml/SaxTest.java b/luni/src/test/java/libcore/xml/SaxTest.java
index 108104d..721809a 100644
--- a/luni/src/test/java/libcore/xml/SaxTest.java
+++ b/luni/src/test/java/libcore/xml/SaxTest.java
@@ -16,7 +16,6 @@
package libcore.xml;
-import dalvik.annotation.KnownFailure;
import java.io.StringReader;
import java.util.Arrays;
import java.util.List;
@@ -96,7 +95,6 @@ public final class SaxTest extends TestCase {
* Android's Expat-based SAX parser fails this test because Expat doesn't
* supply us with our much desired {@code xmlns="http://..."} attributes.
*/
- @KnownFailure("No xmlns attributes from Expat")
public void testYesPrefixesYesNamespaces() throws Exception {
parse(true, true, "<foo bar=\"baz\"/>", new DefaultHandler() {
@Override public void startElement(String uri, String localName,