diff --git a/tests/src/test/java/org/teavm/classlib/java/lang/ClassTest.java b/tests/src/test/java/org/teavm/classlib/java/lang/ClassTest.java index 44c8b2260..55d3be7b4 100644 --- a/tests/src/test/java/org/teavm/classlib/java/lang/ClassTest.java +++ b/tests/src/test/java/org/teavm/classlib/java/lang/ClassTest.java @@ -180,7 +180,7 @@ public class ClassTest { } @Test - @SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY}) + @SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI}) public void annotationsExposed() { Annotation[] annotations = A.class.getAnnotations(); assertEquals(1, annotations.length); @@ -188,7 +188,7 @@ public class ClassTest { } @Test - @SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY}) + @SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI}) public void annotationFieldsExposed() { AnnotWithDefaultField annot = B.class.getAnnotation(AnnotWithDefaultField.class); assertEquals(2, annot.x()); @@ -197,7 +197,7 @@ public class ClassTest { } @Test - @SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY}) + @SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI}) public void annotationFieldTypesSupported() { AnnotWithVariousFields annot = D.class.getAnnotation(AnnotWithVariousFields.class); assertEquals(true, annot.a()); @@ -218,7 +218,7 @@ public class ClassTest { } @Test - @SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY}) + @SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI}) public void getInterfaces() { assertEquals(0, SuperclassWithoutInterfaces.class.getInterfaces().length); assertEquals(Set.of(TestInterface1.class, TestInterface2.class), diff --git a/tests/src/test/java/org/teavm/classlib/java/time/format/TestDateTimeParsing.java b/tests/src/test/java/org/teavm/classlib/java/time/format/TestDateTimeParsing.java index 76fd33a82..ec1c7e1b2 100644 --- a/tests/src/test/java/org/teavm/classlib/java/time/format/TestDateTimeParsing.java +++ b/tests/src/test/java/org/teavm/classlib/java/time/format/TestDateTimeParsing.java @@ -182,13 +182,14 @@ public class TestDateTimeParsing { } @Test(dataProvider = "instantNoZone", expectedExceptions = DateTimeException.class) - @SkipPlatform(TestPlatform.C) + @SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI}) public void test_parse_instantNoZone_ZDT(DateTimeFormatter formatter, String text, Instant expected) { TemporalAccessor actual = formatter.parse(text); ZonedDateTime.from(actual); } @Test(dataProvider = "instantNoZone", expectedExceptions = DateTimeException.class) + @SkipPlatform(TestPlatform.C) public void test_parse_instantNoZone_LDT(DateTimeFormatter formatter, String text, Instant expected) { TemporalAccessor actual = formatter.parse(text); LocalDateTime.from(actual);