File: 20-set-library-path-for-tests.dpatch

package info (click to toggle)
libjna-java 3.2.7-4
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 3,520 kB
  • sloc: java: 27,015; ansic: 3,782; xml: 694; sh: 421; makefile: 231
file content (18 lines) | stat: -rw-r--r-- 897 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#! /bin/sh /usr/share/dpatch/dpatch-run
## 02-set-library-path-for-tests.dpatch by Tiago Saboga <tiagosaboga@gmail.com>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Set library path for junit tests.

@DPATCH@
diff -urNad libjna-java-3.0.4~/build.xml libjna-java-3.0.4/build.xml
--- libjna-java-3.0.4~/build.xml	2008-07-24 22:45:15.000000000 -0300
+++ libjna-java-3.0.4/build.xml	2008-07-24 22:49:56.000000000 -0300
@@ -402,6 +402,7 @@
     <property name="tests.platform" value=""/>
     <junit printsummary="yes" fork="${test.fork}" failureproperty="testfailure">
       <jvmarg value="-Djna.library.path=${build.native}"/>
+      <jvmarg value="-Djava.library.path=${build.native}:${java.library.path}"/>
       <!-- Avoid VM crashes, if possible -->
       <jvmarg value="-Djna.protected=true"/>
       <jvmarg value="-Ddir.build.suffix=${dir.build.suffix}"/>