mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 00:04:10 -08:00
Suppress few tests for WebAssembly and C
This commit is contained in:
parent
da8c50e474
commit
547642503e
|
@ -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),
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user