Explorar el Código

Enabling natives tests

tags/light-jdk8u5+36
Ivan Dubrov hace 10 años
padre
commit
3c65e32f0a

+ 2
- 0
build.gradle Ver fichero

jvmArgs(project.oops == "compressed" ? '-XX:+UseCompressedOops' : "-XX:-UseCompressedOops") jvmArgs(project.oops == "compressed" ? '-XX:+UseCompressedOops' : "-XX:-UseCompressedOops")
} }
jvmArgs "-XX:TraceRedefineClasses=${traceRedefinition}" jvmArgs "-XX:TraceRedefineClasses=${traceRedefinition}"
jvmArgs "-Djava.library.path=../native/build"


ignoreFailures = true ignoreFailures = true
outputs.upToDateWhen { false } outputs.upToDateWhen { false }
} }
} }


test.dependsOn project(':native').tasks['compile']
test.dependsOn project(':hotspot').tasks[kind == 'fastdebug' ? 'installFastdebug' : 'installProduct'] test.dependsOn project(':hotspot').tasks[kind == 'fastdebug' ? 'installFastdebug' : 'installProduct']
} }



+ 3
- 3
dcevm/src/test/java7/com/github/dcevm/test/natives/SimpleNativeTest.java Ver fichero

package com.github.dcevm.test.natives; package com.github.dcevm.test.natives;


import org.junit.Before; import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test; import org.junit.Test;


import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__; import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__;
* *
* @author Thomas Wuerthinger * @author Thomas Wuerthinger
*/ */
@Ignore
public class SimpleNativeTest { public class SimpleNativeTest {
static {
System.loadLibrary("natives");
}


@Before @Before
public void setUp() throws Exception { public void setUp() throws Exception {


@Test @Test
public void testSimpleNativeCalls() { public void testSimpleNativeCalls() {

assert __version__() == 0; assert __version__() == 0;





Cargando…
Cancelar
Guardar