aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Dubrov <idubrov@guidewire.com>2014-04-25 16:31:51 -0700
committerIvan Dubrov <idubrov@guidewire.com>2014-04-25 16:31:51 -0700
commit3c65e32f0af354db771c8b4cc1c840ec37a60407 (patch)
treea87c95fe36450addbf8834b8ffd9eca400408788
parenta2a4b21d0f1addadb8e1d9845f7464e3603719ab (diff)
downloaddcevm-3c65e32f0af354db771c8b4cc1c840ec37a60407.tar.gz
dcevm-3c65e32f0af354db771c8b4cc1c840ec37a60407.zip
Enabling natives tests
-rw-r--r--build.gradle2
-rw-r--r--dcevm/src/test/java7/com/github/dcevm/test/natives/SimpleNativeTest.java6
2 files changed, 5 insertions, 3 deletions
diff --git a/build.gradle b/build.gradle
index 88e06736..77b0f086 100644
--- a/build.gradle
+++ b/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']
}
diff --git a/dcevm/src/test/java7/com/github/dcevm/test/natives/SimpleNativeTest.java b/dcevm/src/test/java7/com/github/dcevm/test/natives/SimpleNativeTest.java
index 1873ea60..23619837 100644
--- a/dcevm/src/test/java7/com/github/dcevm/test/natives/SimpleNativeTest.java
+++ b/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;