From 7c4c2c895c94a0f2d3833d40848f5b19a4aef6fe Mon Sep 17 00:00:00 2001 From: Ben Liblit Date: Sat, 20 Jan 2018 18:20:56 -0600 Subject: [PATCH] Add previously-undeclared dependency of tests on native library --- com.ibm.wala.cast.test/build.gradle | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/com.ibm.wala.cast.test/build.gradle b/com.ibm.wala.cast.test/build.gradle index fa75b9f1c..66df175d4 100644 --- a/com.ibm.wala.cast.test/build.gradle +++ b/com.ibm.wala.cast.test/build.gradle @@ -92,11 +92,10 @@ model { } } } -} -// TODO: Java tests in this subproject should depend on the xlator_test library at run time - -test { - // TODO: compute path on following line from 'xlator_test' library properties somehow - systemProperty 'java.library.path', "$buildDir/libs/xlator_test/shared" + tasks.test { + dependsOn xlator_testSharedLibrary + // TODO: compute path on following line from 'xlator_test' library properties somehow + systemProperty 'java.library.path', "$buildDir/libs/xlator_test/shared" + } }