[TEST] Only check if mlockall succeeds on Windows for now

This commit is contained in:
gmarz 2015-05-11 12:12:32 -04:00
parent 08f7caa56b
commit 852482844c
1 changed files with 3 additions and 1 deletions

View File

@ -31,7 +31,9 @@ public class NativesTests extends ElasticsearchTestCase {
public void testMlockall() {
if (Constants.MAC_OS_X) {
assertFalse("Memory locking is not available on OS X platforms", Natives.LOCAL_MLOCKALL);
} else {
}
if (Constants.WINDOWS) {
assertTrue(Natives.LOCAL_MLOCKALL);
}
}