wasm gc: skip tests for features that won't be implemented during the first iteration

This commit is contained in:
Alexey Andreev 2024-09-18 14:44:14 +02:00
parent 3cf5fc10c8
commit 34bba2a4a5
14 changed files with 36 additions and 36 deletions

View File

@ -106,7 +106,7 @@ public class PipedInputStreamTest {
} }
@Test @Test
@SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI}) @SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI, TestPlatform.WEBASSEMBLY_GC})
public void available() throws Exception { public void available() throws Exception {
pis = new PipedInputStream(); pis = new PipedInputStream();
pos = new PipedOutputStream(); pos = new PipedOutputStream();
@ -133,7 +133,7 @@ public class PipedInputStreamTest {
} }
@Test @Test
@SkipPlatform(TestPlatform.WASI) @SkipPlatform({TestPlatform.WASI, TestPlatform.WEBASSEMBLY_GC})
public void close() throws IOException { public void close() throws IOException {
pis = new PipedInputStream(); pis = new PipedInputStream();
pos = new PipedOutputStream(); pos = new PipedOutputStream();
@ -151,7 +151,7 @@ public class PipedInputStreamTest {
} }
@Test @Test
@SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI}) @SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI, TestPlatform.WEBASSEMBLY_GC})
public void connectLjava_io_PipedOutputStream() throws Exception { public void connectLjava_io_PipedOutputStream() throws Exception {
pis = new PipedInputStream(); pis = new PipedInputStream();
pos = new PipedOutputStream(); pos = new PipedOutputStream();
@ -169,7 +169,7 @@ public class PipedInputStreamTest {
} }
@Test @Test
@SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI}) @SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI, TestPlatform.WEBASSEMBLY_GC})
public void test_read() throws Exception { public void test_read() throws Exception {
pis = new PipedInputStream(); pis = new PipedInputStream();
pos = new PipedOutputStream(); pos = new PipedOutputStream();
@ -187,7 +187,7 @@ public class PipedInputStreamTest {
} }
@Test @Test
@SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI}) @SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI, TestPlatform.WEBASSEMBLY_GC})
public void test_read$BII() throws Exception { public void test_read$BII() throws Exception {
pis = new PipedInputStream(); pis = new PipedInputStream();
pos = new PipedOutputStream(); pos = new PipedOutputStream();
@ -209,7 +209,7 @@ public class PipedInputStreamTest {
} }
@Test @Test
@SkipPlatform(TestPlatform.WASI) @SkipPlatform({TestPlatform.WASI, TestPlatform.WEBASSEMBLY_GC})
public void read$BII_2() throws IOException { public void read$BII_2() throws IOException {
PipedInputStream obj = new PipedInputStream(); PipedInputStream obj = new PipedInputStream();
try { try {
@ -223,7 +223,7 @@ public class PipedInputStreamTest {
} }
@Test @Test
@SkipPlatform(TestPlatform.WASI) @SkipPlatform({TestPlatform.WASI, TestPlatform.WEBASSEMBLY_GC})
public void read$BII_3() throws IOException { public void read$BII_3() throws IOException {
PipedInputStream obj = new PipedInputStream(); PipedInputStream obj = new PipedInputStream();
try { try {
@ -237,7 +237,7 @@ public class PipedInputStreamTest {
} }
@Test @Test
@SkipPlatform(TestPlatform.WASI) @SkipPlatform({TestPlatform.WASI, TestPlatform.WEBASSEMBLY_GC})
public void read$BII_4() throws IOException { public void read$BII_4() throws IOException {
PipedInputStream obj = new PipedInputStream(); PipedInputStream obj = new PipedInputStream();
try { try {
@ -379,7 +379,7 @@ public class PipedInputStreamTest {
} }
@Test @Test
@SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI}) @SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI, TestPlatform.WEBASSEMBLY_GC})
public void read_after_write_close() throws Exception { public void read_after_write_close() throws Exception {
PipedInputStream in = new PipedInputStream(); PipedInputStream in = new PipedInputStream();
PipedOutputStream out = new PipedOutputStream(); PipedOutputStream out = new PipedOutputStream();

View File

@ -90,14 +90,14 @@ public class PipedOutputStreamTest {
} }
@Test @Test
@SkipPlatform(TestPlatform.WASI) @SkipPlatform({TestPlatform.WASI, TestPlatform.WEBASSEMBLY_GC})
public void constructorLjava_io_PipedInputStream() throws Exception { public void constructorLjava_io_PipedInputStream() throws Exception {
out = new PipedOutputStream(new PipedInputStream()); out = new PipedOutputStream(new PipedInputStream());
out.write('b'); out.write('b');
} }
@Test @Test
@SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI}) @SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI, TestPlatform.WEBASSEMBLY_GC})
public void close() throws Exception { public void close() throws Exception {
out = new PipedOutputStream(); out = new PipedOutputStream();
reader = new PReader(out); reader = new PReader(out);
@ -119,7 +119,7 @@ public class PipedOutputStreamTest {
} }
@Test @Test
@SkipPlatform(TestPlatform.WASI) @SkipPlatform({TestPlatform.WASI, TestPlatform.WEBASSEMBLY_GC})
public void connectLjava_io_PipedInputStream() { public void connectLjava_io_PipedInputStream() {
try { try {
out = new PipedOutputStream(); out = new PipedOutputStream();
@ -134,7 +134,7 @@ public class PipedOutputStreamTest {
} }
@Test @Test
@SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI}) @SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI, TestPlatform.WEBASSEMBLY_GC})
public void flush() throws IOException { public void flush() throws IOException {
out = new PipedOutputStream(); out = new PipedOutputStream();
reader = new PReader(out); reader = new PReader(out);
@ -147,7 +147,7 @@ public class PipedOutputStreamTest {
} }
@Test @Test
@SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI}) @SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI, TestPlatform.WEBASSEMBLY_GC})
public void write$BII() throws IOException { public void write$BII() throws IOException {
out = new PipedOutputStream(); out = new PipedOutputStream();
reader = new PReader(out); reader = new PReader(out);
@ -159,7 +159,7 @@ public class PipedOutputStreamTest {
} }
@Test @Test
@SkipPlatform(TestPlatform.WASI) @SkipPlatform({TestPlatform.WASI, TestPlatform.WEBASSEMBLY_GC})
public void test_writeI() throws IOException { public void test_writeI() throws IOException {
out = new PipedOutputStream(); out = new PipedOutputStream();
reader = new PReader(out); reader = new PReader(out);

View File

@ -76,7 +76,7 @@ public class ObjectTest {
} }
@Test @Test
@SkipPlatform(TestPlatform.WASI) @SkipPlatform({TestPlatform.WASI, TestPlatform.WEBASSEMBLY_GC})
public void waitWorks() throws InterruptedException { public void waitWorks() throws InterruptedException {
long start = System.currentTimeMillis(); long start = System.currentTimeMillis();
final Object lock = new Object(); final Object lock = new Object();

View File

@ -30,7 +30,7 @@ import org.teavm.junit.TestPlatform;
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
@EachTestCompiledSeparately @EachTestCompiledSeparately
@SkipPlatform(TestPlatform.WASI) @SkipPlatform({TestPlatform.WASI, TestPlatform.WEBASSEMBLY_GC})
public class ThreadTest { public class ThreadTest {
@Test @Test
public void sleeps() throws InterruptedException { public void sleeps() throws InterruptedException {

View File

@ -30,7 +30,7 @@ import org.teavm.junit.TestPlatform;
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
@EachTestCompiledSeparately @EachTestCompiledSeparately
@SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI}) @SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI, TestPlatform.WEBASSEMBLY_GC})
public class SerializedLambdaTest { public class SerializedLambdaTest {
@Test @Test
public void serializableLambdaHasWriteReplaceMethod() throws NoSuchMethodException, InvocationTargetException, public void serializableLambdaHasWriteReplaceMethod() throws NoSuchMethodException, InvocationTargetException,

View File

@ -32,7 +32,7 @@ import org.teavm.junit.TestPlatform;
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
@EachTestCompiledSeparately @EachTestCompiledSeparately
@SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI}) @SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI, TestPlatform.WEBASSEMBLY_GC})
public class ConstructorTest { public class ConstructorTest {
@Test @Test
public void constructorsEnumerated() { public void constructorsEnumerated() {

View File

@ -29,7 +29,7 @@ import org.teavm.junit.TestPlatform;
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
@EachTestCompiledSeparately @EachTestCompiledSeparately
@SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI}) @SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI, TestPlatform.WEBASSEMBLY_GC})
public class FieldTest { public class FieldTest {
@Test @Test
public void fieldsEnumerated() { public void fieldsEnumerated() {

View File

@ -31,7 +31,7 @@ import org.teavm.junit.TestPlatform;
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
@EachTestCompiledSeparately @EachTestCompiledSeparately
@SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI}) @SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI, TestPlatform.WEBASSEMBLY_GC})
public class MethodTest { public class MethodTest {
@Test @Test
public void methodsEnumerated() { public void methodsEnumerated() {

View File

@ -35,7 +35,7 @@ import org.teavm.junit.TestPlatform;
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
@EachTestCompiledSeparately @EachTestCompiledSeparately
@SkipPlatform(TestPlatform.WASI) @SkipPlatform({TestPlatform.WASI, TestPlatform.WEBASSEMBLY_GC})
public class ArrayBlockingQueueTest { public class ArrayBlockingQueueTest {
@Test @Test
public void constructed() { public void constructed() {

View File

@ -28,7 +28,7 @@ import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.TestPlatform; import org.teavm.junit.TestPlatform;
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
@SkipPlatform({ TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI }) @SkipPlatform({ TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI, TestPlatform.WEBASSEMBLY_GC })
public class AtomicIntegerFieldUpdaterReflectionTest { public class AtomicIntegerFieldUpdaterReflectionTest {
private Class<ClassWithField> getInstanceType() { private Class<ClassWithField> getInstanceType() {
return ClassWithField.class; return ClassWithField.class;

View File

@ -28,7 +28,7 @@ import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.TestPlatform; import org.teavm.junit.TestPlatform;
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
@SkipPlatform({ TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI }) @SkipPlatform({ TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI, TestPlatform.WEBASSEMBLY_GC })
public class AtomicLongFieldUpdaterReflectionTest { public class AtomicLongFieldUpdaterReflectionTest {
private Class<ClassWithField> getInstanceType() { private Class<ClassWithField> getInstanceType() {
return ClassWithField.class; return ClassWithField.class;

View File

@ -29,7 +29,7 @@ import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.TestPlatform; import org.teavm.junit.TestPlatform;
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
@SkipPlatform({ TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI }) @SkipPlatform({ TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI, TestPlatform.WEBASSEMBLY_GC })
public class AtomicReferenceFieldUpdaterReflectionTest { public class AtomicReferenceFieldUpdaterReflectionTest {
private Class<ClassWithField> getInstanceType() { private Class<ClassWithField> getInstanceType() {
return ClassWithField.class; return ClassWithField.class;

View File

@ -25,7 +25,7 @@ import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.TestPlatform; import org.teavm.junit.TestPlatform;
@RunWith(TeaVMTestRunner.class) @RunWith(TeaVMTestRunner.class)
@SkipPlatform({ TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI }) @SkipPlatform({ TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI, TestPlatform.WEBASSEMBLY_GC })
public class MultiThreadedFieldUpdaterTest { public class MultiThreadedFieldUpdaterTest {
@Test @Test
public void getAndUpdate() { public void getAndUpdate() {

View File

@ -258,7 +258,7 @@ public class VMTest {
@Test @Test
@SkipJVM @SkipJVM
@SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI}) @SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI, TestPlatform.WEBASSEMBLY_GC})
public void asyncClinit() { public void asyncClinit() {
assertEquals(0, initCount); assertEquals(0, initCount);
assertEquals("foo", AsyncClinitClass.foo()); assertEquals("foo", AsyncClinitClass.foo());
@ -270,13 +270,13 @@ public class VMTest {
} }
@Test @Test
@SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI}) @SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI, TestPlatform.WEBASSEMBLY_GC})
public void asyncClinitField() { public void asyncClinitField() {
assertEquals("ok", AsyncClinitClass.state); assertEquals("ok", AsyncClinitClass.state);
} }
@Test @Test
@SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI}) @SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI, TestPlatform.WEBASSEMBLY_GC})
public void asyncClinitInstance() { public void asyncClinitInstance() {
AsyncClinitClass acl = new AsyncClinitClass(); AsyncClinitClass acl = new AsyncClinitClass();
assertEquals("ok", AsyncClinitClass.state); assertEquals("ok", AsyncClinitClass.state);
@ -284,7 +284,7 @@ public class VMTest {
} }
@Test @Test
@SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI}) @SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI, TestPlatform.WEBASSEMBLY_GC})
public void asyncWait() { public void asyncWait() {
AsyncClinitClass acl = new AsyncClinitClass(); AsyncClinitClass acl = new AsyncClinitClass();
acl.doWait(); acl.doWait();
@ -293,7 +293,7 @@ public class VMTest {
@Test @Test
@SkipJVM @SkipJVM
@SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI}) @SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI, TestPlatform.WEBASSEMBLY_GC})
public void loopAndExceptionPhi() { public void loopAndExceptionPhi() {
int[] a = createArray(); int[] a = createArray();
int s = 0; int s = 0;
@ -312,7 +312,7 @@ public class VMTest {
@Test @Test
@SkipJVM @SkipJVM
@SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI}) @SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI, TestPlatform.WEBASSEMBLY_GC})
public void asyncTryCatch() { public void asyncTryCatch() {
try { try {
throwExceptionAsync(); throwExceptionAsync();
@ -324,7 +324,7 @@ public class VMTest {
@Test @Test
@SkipJVM @SkipJVM
@SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI}) @SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI, TestPlatform.WEBASSEMBLY_GC})
public void asyncExceptionHandler() { public void asyncExceptionHandler() {
try { try {
throw new RuntimeException("OK"); throw new RuntimeException("OK");
@ -530,7 +530,7 @@ public class VMTest {
} }
@Test @Test
@SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI}) @SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI, TestPlatform.WEBASSEMBLY_GC})
public void indirectDefaultMethod() { public void indirectDefaultMethod() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
for (FirstPath o : new FirstPath[] { new PathJoint(), new FirstPathOptimizationPrevention() }) { for (FirstPath o : new FirstPath[] { new PathJoint(), new FirstPathOptimizationPrevention() }) {
@ -540,7 +540,7 @@ public class VMTest {
} }
@Test @Test
@SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI}) @SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI, TestPlatform.WEBASSEMBLY_GC})
public void indirectDefaultMethodSubclass() { public void indirectDefaultMethodSubclass() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
for (FirstPath o : new FirstPath[] { new PathJointSubclass(), new FirstPathOptimizationPrevention() }) { for (FirstPath o : new FirstPath[] { new PathJointSubclass(), new FirstPathOptimizationPrevention() }) {
@ -615,7 +615,7 @@ public class VMTest {
} }
@Test @Test
@SkipPlatform(TestPlatform.WASI) @SkipPlatform({TestPlatform.WASI, TestPlatform.WEBASSEMBLY_GC})
public void arrayMonitor() throws InterruptedException { public void arrayMonitor() throws InterruptedException {
int[] array = { 1, 2, 3 }; int[] array = { 1, 2, 3 };
synchronized (array) { synchronized (array) {