浏览代码

Enabling natives tests

tags/light-jdk8u5+36
Ivan Dubrov 10 年前
父节点
当前提交
3c65e32f0a
共有 2 个文件被更改,包括 5 次插入3 次删除
  1. 2
    0
      build.gradle
  2. 3
    3
      dcevm/src/test/java7/com/github/dcevm/test/natives/SimpleNativeTest.java

+ 2
- 0
build.gradle 查看文件

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

ignoreFailures = true
outputs.upToDateWhen { false }
@@ -195,6 +196,7 @@ project('dcevm') {
}
}

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


+ 3
- 3
dcevm/src/test/java7/com/github/dcevm/test/natives/SimpleNativeTest.java 查看文件

@@ -25,7 +25,6 @@
package com.github.dcevm.test.natives;

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

import static com.github.dcevm.test.util.HotSwapTestHelper.__toVersion__;
@@ -37,8 +36,10 @@ import static org.junit.Assert.assertEquals;
*
* @author Thomas Wuerthinger
*/
@Ignore
public class SimpleNativeTest {
static {
System.loadLibrary("natives");
}

@Before
public void setUp() throws Exception {
@@ -69,7 +70,6 @@ public class SimpleNativeTest {

@Test
public void testSimpleNativeCalls() {

assert __version__() == 0;



正在加载...
取消
保存