]> source.dussan.org Git - dcevm.git/commitdiff
Enabling natives tests
authorIvan Dubrov <idubrov@guidewire.com>
Fri, 25 Apr 2014 23:31:51 +0000 (16:31 -0700)
committerIvan Dubrov <idubrov@guidewire.com>
Fri, 25 Apr 2014 23:31:51 +0000 (16:31 -0700)
build.gradle
dcevm/src/test/java7/com/github/dcevm/test/natives/SimpleNativeTest.java

index 88e0673689c3a25fafdef1f29ac4acf429dc1ef4..77b0f086cee3423772e8be2511ed36ddd3097f07 100644 (file)
@@ -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']
 }
 
index 1873ea60c4100ceb6fb09fd3a1d3fc3f4c384b5b..23619837cf813deb8e133d71279c64eca096a860 100644 (file)
@@ -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;