Suppress few tests for WebAssembly and C

This commit is contained in:
Alexey Andreev 2023-11-09 10:57:57 +01:00
parent da8c50e474
commit 547642503e
2 changed files with 6 additions and 5 deletions

View File

@ -180,7 +180,7 @@ public class ClassTest {
} }
@Test @Test
@SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY}) @SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI})
public void annotationsExposed() { public void annotationsExposed() {
Annotation[] annotations = A.class.getAnnotations(); Annotation[] annotations = A.class.getAnnotations();
assertEquals(1, annotations.length); assertEquals(1, annotations.length);
@ -188,7 +188,7 @@ public class ClassTest {
} }
@Test @Test
@SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY}) @SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI})
public void annotationFieldsExposed() { public void annotationFieldsExposed() {
AnnotWithDefaultField annot = B.class.getAnnotation(AnnotWithDefaultField.class); AnnotWithDefaultField annot = B.class.getAnnotation(AnnotWithDefaultField.class);
assertEquals(2, annot.x()); assertEquals(2, annot.x());
@ -197,7 +197,7 @@ public class ClassTest {
} }
@Test @Test
@SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY}) @SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI})
public void annotationFieldTypesSupported() { public void annotationFieldTypesSupported() {
AnnotWithVariousFields annot = D.class.getAnnotation(AnnotWithVariousFields.class); AnnotWithVariousFields annot = D.class.getAnnotation(AnnotWithVariousFields.class);
assertEquals(true, annot.a()); assertEquals(true, annot.a());
@ -218,7 +218,7 @@ public class ClassTest {
} }
@Test @Test
@SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY}) @SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI})
public void getInterfaces() { public void getInterfaces() {
assertEquals(0, SuperclassWithoutInterfaces.class.getInterfaces().length); assertEquals(0, SuperclassWithoutInterfaces.class.getInterfaces().length);
assertEquals(Set.of(TestInterface1.class, TestInterface2.class), assertEquals(Set.of(TestInterface1.class, TestInterface2.class),

View File

@ -182,13 +182,14 @@ public class TestDateTimeParsing {
} }
@Test(dataProvider = "instantNoZone", expectedExceptions = DateTimeException.class) @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) { public void test_parse_instantNoZone_ZDT(DateTimeFormatter formatter, String text, Instant expected) {
TemporalAccessor actual = formatter.parse(text); TemporalAccessor actual = formatter.parse(text);
ZonedDateTime.from(actual); ZonedDateTime.from(actual);
} }
@Test(dataProvider = "instantNoZone", expectedExceptions = DateTimeException.class) @Test(dataProvider = "instantNoZone", expectedExceptions = DateTimeException.class)
@SkipPlatform(TestPlatform.C)
public void test_parse_instantNoZone_LDT(DateTimeFormatter formatter, String text, Instant expected) { public void test_parse_instantNoZone_LDT(DateTimeFormatter formatter, String text, Instant expected) {
TemporalAccessor actual = formatter.parse(text); TemporalAccessor actual = formatter.parse(text);
LocalDateTime.from(actual); LocalDateTime.from(actual);