set -Djna.nosys when running tests.

This is consistent with what happens in elasticsearch.sh/.bat, and it means
tests will work even if there is a crazy "system" JNA installed on the machine.
This commit is contained in:
Robert Muir 2016-01-19 18:49:47 -05:00
parent bd68af1dee
commit 79cc3c2dd0
1 changed files with 1 additions and 0 deletions

View File

@ -372,6 +372,7 @@ class BuildPlugin implements Plugin<Project> {
systemProperty 'tests.artifact', project.name systemProperty 'tests.artifact', project.name
systemProperty 'tests.task', path systemProperty 'tests.task', path
systemProperty 'tests.security.manager', 'true' systemProperty 'tests.security.manager', 'true'
systemProperty 'jna.nosys', 'true'
// default test sysprop values // default test sysprop values
systemProperty 'tests.ifNoTests', 'fail' systemProperty 'tests.ifNoTests', 'fail'
systemProperty 'es.logger.level', 'WARN' systemProperty 'es.logger.level', 'WARN'