Skip to content

Commit 97de5cf

Browse files
committed
Skip jdk vector benchmark tests on windows
1 parent 48f60b6 commit 97de5cf

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

benchmarks/src/test/java/org/elasticsearch/benchmark/vector/JDKVectorInt7uBenchmarkTests.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111

1212
import com.carrotsearch.randomizedtesting.annotations.ParametersFactory;
1313

14+
import org.apache.lucene.util.Constants;
1415
import org.elasticsearch.test.ESTestCase;
16+
import org.junit.BeforeClass;
1517
import org.openjdk.jmh.annotations.Param;
1618

1719
import java.util.Arrays;
@@ -25,6 +27,11 @@ public JDKVectorInt7uBenchmarkTests(int size) {
2527
this.size = size;
2628
}
2729

30+
@BeforeClass
31+
public static void skipWindows() {
32+
assumeFalse("doesn't work on windows yet", Constants.WINDOWS);
33+
}
34+
2835
public void testDotProduct() {
2936
for (int i = 0; i < 100; i++) {
3037
var bench = new JDKVectorInt7uBenchmark();

0 commit comments

Comments
 (0)