Skip to content

Commit

Permalink
Force JNA to fail if testing JNI and vice-versa
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
sebbASF committed Nov 14, 2023
1 parent ce6aaaf commit 8a96ee5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ jobs:
- name: Check JNI and JNA tests are independent
# N.B. the default library fails with 'java is loading libcrypto in an unsafe way'
# so we need to define the appropriate library for each test
if: ${{ matrix.java == '8' && matrix.os == 'ubuntu-20.04' }}
if: ${{ matrix.java == '8' && matrix.os != 'windows-latest' }}
run: |
mvn -V -B -ntp test -Ptestjni -D"jni.library.path=$ENGINESDIR"
mvn -V -B -ntp test -Ptestjna -D"jna.library.path=$ENGINESDIR"
mvn -V -B -ntp test -Ptestjni -D"jni.library.path=$ENGINESDIR" -Dcommons.crypto.OpenSslNativeJna=___
mvn -V -B -ntp test -Ptestjna -D"jna.library.path=$ENGINESDIR" -Djni.library.name=___

0 comments on commit 8a96ee5

Please sign in to comment.