Skip some Tests for SpiderMonkeyWat because bugs in WasmTextToBinary

This commit is contained in:
Volker Berlin 2019-04-20 15:11:08 +02:00
parent bddf4c7525
commit 97e3c9616f
2 changed files with 20 additions and 2 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright 2018 Volker Berlin (i-net software)
* Copyright 2018 - 2019 Volker Berlin (i-net software)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -49,6 +49,15 @@ public abstract class AbstractBaseTest {
list.add( new Object[]{script, method, params} );
}
/**
* Get the ScriptEngine with which the test is running.
*
* @return the engine
*/
protected ScriptEngine getScriptEngine() {
return script;
}
@Test
public void test() {
wasm.test( script, method, params );

View File

@ -1,5 +1,5 @@
/*
* Copyright 2018 Volker Berlin (i-net software)
* Copyright 2018 - 2019 Volker Berlin (i-net software)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -15,10 +15,13 @@
*/
package de.inetsoftware.jwebassembly.runtime;
import static org.junit.Assume.assumeFalse;
import java.util.ArrayList;
import java.util.Collection;
import org.junit.ClassRule;
import org.junit.Test;
import org.junit.runners.Parameterized.Parameters;
import de.inetsoftware.jwebassembly.ScriptEngine;
@ -57,6 +60,12 @@ public class ControlFlowOperators extends AbstractBaseTest {
return list;
}
@Test
public void test() {
assumeFalse( getScriptEngine() == ScriptEngine.SpiderMonkeyWat ); // https://bugzilla.mozilla.org/show_bug.cgi?id=1545755
super.test();
}
static class TestClass {
@Export