Skip to content

Commit

Permalink
[TEST] Fix mlockall test when running on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
gmarz committed May 11, 2015
1 parent 4fc08aa commit cc3f02c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/test/java/org/elasticsearch/common/jna/NativesTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,10 @@ public class NativesTests extends ElasticsearchTestCase {

@Test
public void testMlockall() {
if (Constants.WINDOWS) {
assertFalse("Memory locking is not available on Windows platforms", Natives.LOCAL_MLOCKALL);
}
if (Constants.MAC_OS_X) {
assertFalse("Memory locking is not available on OS X platforms", Natives.LOCAL_MLOCKALL);
} else {
assertTrue(Natives.LOCAL_MLOCKALL);
}
}

Expand Down

0 comments on commit cc3f02c

Please sign in to comment.