summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMythri Alle <mythria@google.com>2023-11-27 08:54:25 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2023-11-27 08:54:25 +0000
commit9561ea02cdd5bc05cc38bf83842218588067c012 (patch)
treefc426f2b614e65666461ccd091a79198b4e5c2f2
parent4069b35e6c355b0b8885e2443f14cfdf9caeb510 (diff)
parent5989fa6dd8a2fd49d20266e203380804b2dab7eb (diff)
downloadapache-harmony-9561ea02cdd5bc05cc38bf83842218588067c012.tar.gz
Merge "Disable a few tests that don't work with ART" into main
-rw-r--r--jdwp/src/test/java/org/apache/harmony/jpda/tests/share/AllTests.java21
1 files changed, 21 insertions, 0 deletions
diff --git a/jdwp/src/test/java/org/apache/harmony/jpda/tests/share/AllTests.java b/jdwp/src/test/java/org/apache/harmony/jpda/tests/share/AllTests.java
index 55ce1ca..62862ec 100644
--- a/jdwp/src/test/java/org/apache/harmony/jpda/tests/share/AllTests.java
+++ b/jdwp/src/test/java/org/apache/harmony/jpda/tests/share/AllTests.java
@@ -129,6 +129,27 @@ public class AllTests {
// though.
Set<String> bad_test_cases = new HashSet<>();
bad_test_cases.addAll(Arrays.asList(TEST_OPTIONS.getBadTestCases()));
+
+ // TODO(b/227193963): ART and RI don't report errors for certain JNI checks like incorrect
+ // method IDs on invoke method or incorrect field ids on GetField. Though this is required by
+ // the spec ART has never supported this. RI doesn't support it either. So disable the following
+ // tests.
+ bad_test_cases.add(
+ "org.apache.harmony.jpda.tests.jdwp.ClassType_InvokeMethodTest#testInvokeMethod002");
+ bad_test_cases.add(
+ "org.apache.harmony.jpda.tests.jdwp.ClassType_InvokeMethodTest#testInvokeMethod003");
+ bad_test_cases.add(
+ "org.apache.harmony.jpda.tests.jdwp.ReferenceType_GetValues002Test#testGetValues002");
+ bad_test_cases.add(
+ "org.apache.harmony.jpda.tests.jdwp.ReferenceType_GetValues004Test#testGetValues004");
+ bad_test_cases.add(
+ "org.apache.harmony.jpda.tests.jdwp.StringReference_ValueTest#"
+ + "testStringReferenceValueTest001_NullString");
+ bad_test_cases.add(
+ "org.apache.harmony.jpda.tests.jdwp.ClassType_InvokeMethod002Test#"
+ + "testInvokeMethod_wrong_argument_types");
+
+
FilterSuite suite = (k) -> {
try {
baseSuite.addTest(