File tree Expand file tree Collapse file tree 3 files changed +10
-4
lines changed
src/test/java/org/elasticsearch/nativeaccess Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,11 @@ dependencies {
2121 }
2222}
2323
24+ tasks. named(" test" ). configure {
25+ // this is necessary so that VectorSystemPropertyTests can invoke java
26+ systemProperty " tests.system_call_filter" , " false"
27+ }
28+
2429tasks. withType(CheckForbiddenApisTask ). configureEach {
2530 replaceSignatureFiles ' jdk-signatures'
2631}
Original file line number Diff line number Diff line change 99
1010package org .elasticsearch .nativeaccess ;
1111
12+ import org .apache .lucene .util .Constants ;
1213import org .elasticsearch .core .SuppressForbidden ;
1314import org .elasticsearch .test .ESTestCase ;
1415import org .elasticsearch .test .ESTestCase .WithoutSecurityManager ;
@@ -34,6 +35,8 @@ public class VectorSystemPropertyTests extends ESTestCase {
3435
3536 @ BeforeClass
3637 public static void setup () throws Exception {
38+ assumeTrue ("native scorers are not on Windows" , Constants .WINDOWS == false );
39+
3740 var classBytes = InMemoryJavaCompiler .compile ("p.Test" , TEST_SOURCE );
3841 Map <String , byte []> jarEntries = new HashMap <>();
3942 jarEntries .put ("p/Test.class" , classBytes );
@@ -47,7 +50,8 @@ public void testSystemPropertyDisabled() throws Exception {
4750 var process = new ProcessBuilder (
4851 getJavaExecutable (),
4952 "-D" + ENABLE_JDK_VECTOR_LIBRARY + "=false" ,
50- "-Xms4m" ,
53+ "-Xms16m" ,
54+ "-Xmx16m" ,
5155 "-cp" ,
5256 jarPath + File .pathSeparator + System .getProperty ("java.class.path" ),
5357 "-Des.nativelibs.path=" + System .getProperty ("es.nativelibs.path" ),
Original file line number Diff line number Diff line change 1717- class : " org.elasticsearch.xpack.searchablesnapshots.FrozenSearchableSnapshotsIntegTests"
1818 issue : " https://github.com/elastic/elasticsearch/issues/110408"
1919 method : " testCreateAndRestorePartialSearchableSnapshot"
20- - class : org.elasticsearch.nativeaccess.VectorSystemPropertyTests
21- method : testSystemPropertyDisabled
22- issue : https://github.com/elastic/elasticsearch/issues/110949
2320- class : org.elasticsearch.packaging.test.DockerTests
2421 method : test021InstallPlugin
2522 issue : https://github.com/elastic/elasticsearch/issues/110343
You can’t perform that action at this time.
0 commit comments