jvmArgs(project.oops == "compressed" ? '-XX:+UseCompressedOops' : "-XX:-UseCompressedOops")
}
jvmArgs "-XX:TraceRedefineClasses=${traceRedefinition}"
+ jvmArgs "-Djava.library.path=../native/build"
ignoreFailures = true
outputs.upToDateWhen { false }
}
}
+ test.dependsOn project(':native').tasks['compile']
test.dependsOn project(':hotspot').tasks[kind == 'fastdebug' ? 'installFastdebug' : 'installProduct']
}
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__;
*
* @author Thomas Wuerthinger
*/
-@Ignore
public class SimpleNativeTest {
+ static {
+ System.loadLibrary("natives");
+ }
@Before
public void setUp() throws Exception {
@Test
public void testSimpleNativeCalls() {
-
assert __version__() == 0;