summaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2009-04-23 11:11:35 +0100
committerRichard W.M. Jones <rjones@redhat.com>2009-04-23 11:11:35 +0100
commit5d13ccaf55aed74b8e2d778c064c544e6300e0a5 (patch)
treefb541db9bd095862dbe9fecf5512726989e2248d /java
parentd660085d7aff275b720ef4efb28ecafd7d7209e5 (diff)
downloadlibguestfs-5d13ccaf55aed74b8e2d778c064c544e6300e0a5.tar.gz
libguestfs-5d13ccaf55aed74b8e2d778c064c544e6300e0a5.tar.xz
libguestfs-5d13ccaf55aed74b8e2d778c064c544e6300e0a5.zip
Fix Java tests by passing correct library path to JVM.
Diffstat (limited to 'java')
-rwxr-xr-xjava/run-java-test5
1 files changed, 3 insertions, 2 deletions
diff --git a/java/run-java-test b/java/run-java-test
index fb41b796..905360df 100755
--- a/java/run-java-test
+++ b/java/run-java-test
@@ -16,5 +16,6 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-cmd=$(echo $1 | sed -e 's,./t/,,' -e 's,.class,,')
-$JAVA $cmd
+cmd=$(echo $1 | sed -e 's,^./t/,,' -e 's,.class$,,')
+
+$JAVA -Djava.library.path=.libs $cmd