wasm: suppress some failing tests

This commit is contained in:
Alexey Andreev 2023-10-02 14:18:25 +02:00
parent 2c00df288f
commit 7ff56d7a94
4 changed files with 8 additions and 1 deletions

View File

@ -46,7 +46,7 @@ public class ClassLoaderTest {
}
@Test
@SkipPlatform(TestPlatform.C)
@SkipPlatform({TestPlatform.C, TestPlatform.WEBASSEMBLY, TestPlatform.WASI})
public void returnsNullForNonExistentResource() {
InputStream input = ClassLoader.getSystemClassLoader().getResourceAsStream("non-existent-resource.txt");
assertNull(input);

View File

@ -280,6 +280,7 @@ public class StringTest {
}
@Test
@SkipPlatform({ TestPlatform.WEBASSEMBLY, TestPlatform.WASI })
public void getUTF8ByteArrayOfLongString() throws UnsupportedEncodingException {
char[] chars = new char[8192];
for (int i = 0; i < chars.length;) {

View File

@ -115,7 +115,9 @@ import java.util.Iterator;
import java.util.List;
import org.junit.runner.RunWith;
import org.teavm.classlib.java.time.temporal.MockFieldNoValue;
import org.teavm.junit.SkipPlatform;
import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.TestPlatform;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
@ -2670,6 +2672,7 @@ public class TestLocalDateTime extends AbstractDateTimeTest {
}
@Test(dataProvider = "until")
@SkipPlatform({ TestPlatform.WEBASSEMBLY, TestPlatform.WASI })
public void test_until(String startStr, String endStr, TemporalUnit unit, long expected) {
LocalDateTime start = LocalDateTime.parse(startStr);
LocalDateTime end = LocalDateTime.parse(endStr);

View File

@ -69,7 +69,9 @@ import java.time.temporal.TemporalAccessor;
import java.time.temporal.TemporalQuery;
import java.util.Locale;
import org.junit.runner.RunWith;
import org.teavm.junit.SkipPlatform;
import org.teavm.junit.TeaVMTestRunner;
import org.teavm.junit.TestPlatform;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
@ -515,6 +517,7 @@ public class TestDateTimeFormatter {
}
//-------------------------------------------------------------------------
@SkipPlatform({ TestPlatform.WEBASSEMBLY, TestPlatform.WASI })
public void test_parse_allZones() throws Exception {
for (String zoneStr : ZoneId.getAvailableZoneIds()) {
// TODO: looks like our implementation does not support that. Fix and remove this hack