mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 08:14:09 -08:00
wasm gc: skip tests for features that won't be implemented during the first iteration
This commit is contained in:
parent
3cf5fc10c8
commit
34bba2a4a5
|
@ -106,7 +106,7 @@ public class PipedInputStreamTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
@SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI})
|
||||
@SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI, TestPlatform.WEBASSEMBLY_GC})
|
||||
public void available() throws Exception {
|
||||
pis = new PipedInputStream();
|
||||
pos = new PipedOutputStream();
|
||||
|
@ -133,7 +133,7 @@ public class PipedInputStreamTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
@SkipPlatform(TestPlatform.WASI)
|
||||
@SkipPlatform({TestPlatform.WASI, TestPlatform.WEBASSEMBLY_GC})
|
||||
public void close() throws IOException {
|
||||
pis = new PipedInputStream();
|
||||
pos = new PipedOutputStream();
|
||||
|
@ -151,7 +151,7 @@ public class PipedInputStreamTest {
|
|||
}
|
||||
|
||||
@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 {
|
||||
pis = new PipedInputStream();
|
||||
pos = new PipedOutputStream();
|
||||
|
@ -169,7 +169,7 @@ public class PipedInputStreamTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
@SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI})
|
||||
@SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI, TestPlatform.WEBASSEMBLY_GC})
|
||||
public void test_read() throws Exception {
|
||||
pis = new PipedInputStream();
|
||||
pos = new PipedOutputStream();
|
||||
|
@ -187,7 +187,7 @@ public class PipedInputStreamTest {
|
|||
}
|
||||
|
||||
@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 {
|
||||
pis = new PipedInputStream();
|
||||
pos = new PipedOutputStream();
|
||||
|
@ -209,7 +209,7 @@ public class PipedInputStreamTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
@SkipPlatform(TestPlatform.WASI)
|
||||
@SkipPlatform({TestPlatform.WASI, TestPlatform.WEBASSEMBLY_GC})
|
||||
public void read$BII_2() throws IOException {
|
||||
PipedInputStream obj = new PipedInputStream();
|
||||
try {
|
||||
|
@ -223,7 +223,7 @@ public class PipedInputStreamTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
@SkipPlatform(TestPlatform.WASI)
|
||||
@SkipPlatform({TestPlatform.WASI, TestPlatform.WEBASSEMBLY_GC})
|
||||
public void read$BII_3() throws IOException {
|
||||
PipedInputStream obj = new PipedInputStream();
|
||||
try {
|
||||
|
@ -237,7 +237,7 @@ public class PipedInputStreamTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
@SkipPlatform(TestPlatform.WASI)
|
||||
@SkipPlatform({TestPlatform.WASI, TestPlatform.WEBASSEMBLY_GC})
|
||||
public void read$BII_4() throws IOException {
|
||||
PipedInputStream obj = new PipedInputStream();
|
||||
try {
|
||||
|
@ -379,7 +379,7 @@ public class PipedInputStreamTest {
|
|||
}
|
||||
|
||||
@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 {
|
||||
PipedInputStream in = new PipedInputStream();
|
||||
PipedOutputStream out = new PipedOutputStream();
|
||||
|
|
|
@ -90,14 +90,14 @@ public class PipedOutputStreamTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
@SkipPlatform(TestPlatform.WASI)
|
||||
@SkipPlatform({TestPlatform.WASI, TestPlatform.WEBASSEMBLY_GC})
|
||||
public void constructorLjava_io_PipedInputStream() throws Exception {
|
||||
out = new PipedOutputStream(new PipedInputStream());
|
||||
out.write('b');
|
||||
}
|
||||
|
||||
@Test
|
||||
@SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI})
|
||||
@SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI, TestPlatform.WEBASSEMBLY_GC})
|
||||
public void close() throws Exception {
|
||||
out = new PipedOutputStream();
|
||||
reader = new PReader(out);
|
||||
|
@ -119,7 +119,7 @@ public class PipedOutputStreamTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
@SkipPlatform(TestPlatform.WASI)
|
||||
@SkipPlatform({TestPlatform.WASI, TestPlatform.WEBASSEMBLY_GC})
|
||||
public void connectLjava_io_PipedInputStream() {
|
||||
try {
|
||||
out = new PipedOutputStream();
|
||||
|
@ -134,7 +134,7 @@ public class PipedOutputStreamTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
@SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI})
|
||||
@SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI, TestPlatform.WEBASSEMBLY_GC})
|
||||
public void flush() throws IOException {
|
||||
out = new PipedOutputStream();
|
||||
reader = new PReader(out);
|
||||
|
@ -147,7 +147,7 @@ public class PipedOutputStreamTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
@SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI})
|
||||
@SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI, TestPlatform.WEBASSEMBLY_GC})
|
||||
public void write$BII() throws IOException {
|
||||
out = new PipedOutputStream();
|
||||
reader = new PReader(out);
|
||||
|
@ -159,7 +159,7 @@ public class PipedOutputStreamTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
@SkipPlatform(TestPlatform.WASI)
|
||||
@SkipPlatform({TestPlatform.WASI, TestPlatform.WEBASSEMBLY_GC})
|
||||
public void test_writeI() throws IOException {
|
||||
out = new PipedOutputStream();
|
||||
reader = new PReader(out);
|
||||
|
|
|
@ -76,7 +76,7 @@ public class ObjectTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
@SkipPlatform(TestPlatform.WASI)
|
||||
@SkipPlatform({TestPlatform.WASI, TestPlatform.WEBASSEMBLY_GC})
|
||||
public void waitWorks() throws InterruptedException {
|
||||
long start = System.currentTimeMillis();
|
||||
final Object lock = new Object();
|
||||
|
|
|
@ -30,7 +30,7 @@ import org.teavm.junit.TestPlatform;
|
|||
|
||||
@RunWith(TeaVMTestRunner.class)
|
||||
@EachTestCompiledSeparately
|
||||
@SkipPlatform(TestPlatform.WASI)
|
||||
@SkipPlatform({TestPlatform.WASI, TestPlatform.WEBASSEMBLY_GC})
|
||||
public class ThreadTest {
|
||||
@Test
|
||||
public void sleeps() throws InterruptedException {
|
||||
|
|
|
@ -30,7 +30,7 @@ import org.teavm.junit.TestPlatform;
|
|||
|
||||
@RunWith(TeaVMTestRunner.class)
|
||||
@EachTestCompiledSeparately
|
||||
@SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI})
|
||||
@SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI, TestPlatform.WEBASSEMBLY_GC})
|
||||
public class SerializedLambdaTest {
|
||||
@Test
|
||||
public void serializableLambdaHasWriteReplaceMethod() throws NoSuchMethodException, InvocationTargetException,
|
||||
|
|
|
@ -32,7 +32,7 @@ import org.teavm.junit.TestPlatform;
|
|||
|
||||
@RunWith(TeaVMTestRunner.class)
|
||||
@EachTestCompiledSeparately
|
||||
@SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI})
|
||||
@SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI, TestPlatform.WEBASSEMBLY_GC})
|
||||
public class ConstructorTest {
|
||||
@Test
|
||||
public void constructorsEnumerated() {
|
||||
|
|
|
@ -29,7 +29,7 @@ import org.teavm.junit.TestPlatform;
|
|||
|
||||
@RunWith(TeaVMTestRunner.class)
|
||||
@EachTestCompiledSeparately
|
||||
@SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI})
|
||||
@SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI, TestPlatform.WEBASSEMBLY_GC})
|
||||
public class FieldTest {
|
||||
@Test
|
||||
public void fieldsEnumerated() {
|
||||
|
|
|
@ -31,7 +31,7 @@ import org.teavm.junit.TestPlatform;
|
|||
|
||||
@RunWith(TeaVMTestRunner.class)
|
||||
@EachTestCompiledSeparately
|
||||
@SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI})
|
||||
@SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI, TestPlatform.WEBASSEMBLY_GC})
|
||||
public class MethodTest {
|
||||
@Test
|
||||
public void methodsEnumerated() {
|
||||
|
|
|
@ -35,7 +35,7 @@ import org.teavm.junit.TestPlatform;
|
|||
|
||||
@RunWith(TeaVMTestRunner.class)
|
||||
@EachTestCompiledSeparately
|
||||
@SkipPlatform(TestPlatform.WASI)
|
||||
@SkipPlatform({TestPlatform.WASI, TestPlatform.WEBASSEMBLY_GC})
|
||||
public class ArrayBlockingQueueTest {
|
||||
@Test
|
||||
public void constructed() {
|
||||
|
|
|
@ -28,7 +28,7 @@ import org.teavm.junit.TeaVMTestRunner;
|
|||
import org.teavm.junit.TestPlatform;
|
||||
|
||||
@RunWith(TeaVMTestRunner.class)
|
||||
@SkipPlatform({ TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI })
|
||||
@SkipPlatform({ TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI, TestPlatform.WEBASSEMBLY_GC })
|
||||
public class AtomicIntegerFieldUpdaterReflectionTest {
|
||||
private Class<ClassWithField> getInstanceType() {
|
||||
return ClassWithField.class;
|
||||
|
|
|
@ -28,7 +28,7 @@ import org.teavm.junit.TeaVMTestRunner;
|
|||
import org.teavm.junit.TestPlatform;
|
||||
|
||||
@RunWith(TeaVMTestRunner.class)
|
||||
@SkipPlatform({ TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI })
|
||||
@SkipPlatform({ TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI, TestPlatform.WEBASSEMBLY_GC })
|
||||
public class AtomicLongFieldUpdaterReflectionTest {
|
||||
private Class<ClassWithField> getInstanceType() {
|
||||
return ClassWithField.class;
|
||||
|
|
|
@ -29,7 +29,7 @@ import org.teavm.junit.TeaVMTestRunner;
|
|||
import org.teavm.junit.TestPlatform;
|
||||
|
||||
@RunWith(TeaVMTestRunner.class)
|
||||
@SkipPlatform({ TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI })
|
||||
@SkipPlatform({ TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI, TestPlatform.WEBASSEMBLY_GC })
|
||||
public class AtomicReferenceFieldUpdaterReflectionTest {
|
||||
private Class<ClassWithField> getInstanceType() {
|
||||
return ClassWithField.class;
|
||||
|
|
|
@ -25,7 +25,7 @@ import org.teavm.junit.TeaVMTestRunner;
|
|||
import org.teavm.junit.TestPlatform;
|
||||
|
||||
@RunWith(TeaVMTestRunner.class)
|
||||
@SkipPlatform({ TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI })
|
||||
@SkipPlatform({ TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI, TestPlatform.WEBASSEMBLY_GC })
|
||||
public class MultiThreadedFieldUpdaterTest {
|
||||
@Test
|
||||
public void getAndUpdate() {
|
||||
|
|
|
@ -258,7 +258,7 @@ public class VMTest {
|
|||
|
||||
@Test
|
||||
@SkipJVM
|
||||
@SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI})
|
||||
@SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI, TestPlatform.WEBASSEMBLY_GC})
|
||||
public void asyncClinit() {
|
||||
assertEquals(0, initCount);
|
||||
assertEquals("foo", AsyncClinitClass.foo());
|
||||
|
@ -270,13 +270,13 @@ public class VMTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
@SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI})
|
||||
@SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI, TestPlatform.WEBASSEMBLY_GC})
|
||||
public void asyncClinitField() {
|
||||
assertEquals("ok", AsyncClinitClass.state);
|
||||
}
|
||||
|
||||
@Test
|
||||
@SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI})
|
||||
@SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI, TestPlatform.WEBASSEMBLY_GC})
|
||||
public void asyncClinitInstance() {
|
||||
AsyncClinitClass acl = new AsyncClinitClass();
|
||||
assertEquals("ok", AsyncClinitClass.state);
|
||||
|
@ -284,7 +284,7 @@ public class VMTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
@SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI})
|
||||
@SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI, TestPlatform.WEBASSEMBLY_GC})
|
||||
public void asyncWait() {
|
||||
AsyncClinitClass acl = new AsyncClinitClass();
|
||||
acl.doWait();
|
||||
|
@ -293,7 +293,7 @@ public class VMTest {
|
|||
|
||||
@Test
|
||||
@SkipJVM
|
||||
@SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI})
|
||||
@SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI, TestPlatform.WEBASSEMBLY_GC})
|
||||
public void loopAndExceptionPhi() {
|
||||
int[] a = createArray();
|
||||
int s = 0;
|
||||
|
@ -312,7 +312,7 @@ public class VMTest {
|
|||
|
||||
@Test
|
||||
@SkipJVM
|
||||
@SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI})
|
||||
@SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI, TestPlatform.WEBASSEMBLY_GC})
|
||||
public void asyncTryCatch() {
|
||||
try {
|
||||
throwExceptionAsync();
|
||||
|
@ -324,7 +324,7 @@ public class VMTest {
|
|||
|
||||
@Test
|
||||
@SkipJVM
|
||||
@SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI})
|
||||
@SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI, TestPlatform.WEBASSEMBLY_GC})
|
||||
public void asyncExceptionHandler() {
|
||||
try {
|
||||
throw new RuntimeException("OK");
|
||||
|
@ -530,7 +530,7 @@ public class VMTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
@SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI})
|
||||
@SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI, TestPlatform.WEBASSEMBLY_GC})
|
||||
public void indirectDefaultMethod() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
for (FirstPath o : new FirstPath[] { new PathJoint(), new FirstPathOptimizationPrevention() }) {
|
||||
|
@ -540,7 +540,7 @@ public class VMTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
@SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI})
|
||||
@SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI, TestPlatform.WEBASSEMBLY_GC})
|
||||
public void indirectDefaultMethodSubclass() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
for (FirstPath o : new FirstPath[] { new PathJointSubclass(), new FirstPathOptimizationPrevention() }) {
|
||||
|
@ -615,7 +615,7 @@ public class VMTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
@SkipPlatform(TestPlatform.WASI)
|
||||
@SkipPlatform({TestPlatform.WASI, TestPlatform.WEBASSEMBLY_GC})
|
||||
public void arrayMonitor() throws InterruptedException {
|
||||
int[] array = { 1, 2, 3 };
|
||||
synchronized (array) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user