[TEST] Fix mlockall test when running on Windows

This commit is contained in:
gmarz 2015-05-11 11:09:15 -04:00
parent 4fc08aa019
commit cc3f02c0a0
1 changed files with 2 additions and 3 deletions

View File

@ -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);
}
}