peter-lawrey / Java-Thread-Affinity

Control thread affinity for Java
379 stars 77 forks source link

Build failing if JNI lib missed #2

Closed cheremin closed 12 years ago

cheremin commented 12 years ago

Currently build is failing on test phrase if JNI 'affinity' lib is not available. It is NativeAffinityTest which fails.

I suppose, such test is meaningless if NativeAffinity is not loaded. So, it should be changed like this:

@BeforeClass public void checkJniLibraryPresent(){ Assume.assumeTrue( NativeAffinity.LOADED ); }

this will lead to ignoring this testcase in case where NativeAffinity is not available.

peter-lawrey commented 12 years ago

I have added this check to NativeAffinityTest and a similar one to JNAAffinityTest

peter-lawrey commented 12 years ago

Thank you for the feedback BTW.

cheremin commented 12 years ago

Thank you for your quick reaction :)

cheremin commented 12 years ago

Uph... I've just forget cite "static" in method declaration