Don't run the JVM crash test on windows (#110194)

This commit is contained in:
Simon Cooper 2024-06-26 17:05:16 +01:00 committed by GitHub
parent 5eae642259
commit c752fbab35
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 3 deletions

View file

@ -73,9 +73,6 @@ tests:
- class: org.elasticsearch.xpack.transform.transforms.TransformIndexerTests
method: testMaxPageSearchSizeIsResetToConfiguredValue
issue: https://github.com/elastic/elasticsearch/issues/109844
- class: "org.elasticsearch.test.jvm_crash.JvmCrashIT"
issue: "https://github.com/elastic/elasticsearch/issues/110052"
method: "testJvmCrash"
# Examples:
#

View file

@ -22,9 +22,11 @@ import org.elasticsearch.test.cluster.local.distribution.DistributionType;
import org.elasticsearch.test.cluster.local.distribution.LocalDistributionResolver;
import org.elasticsearch.test.cluster.local.distribution.ReleasedDistributionResolver;
import org.elasticsearch.test.cluster.local.distribution.SnapshotDistributionResolver;
import org.elasticsearch.test.cluster.util.OS;
import org.elasticsearch.test.rest.ESRestTestCase;
import org.hamcrest.Matcher;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.ClassRule;
import java.io.BufferedReader;
@ -46,6 +48,11 @@ import static org.hamcrest.Matchers.not;
public class JvmCrashIT extends ESRestTestCase {
@BeforeClass
public static void dontRunWindows() {
assumeFalse("JVM crash log doesn't go to stdout on windows", OS.current() == OS.WINDOWS);
}
private static class StdOutCatchingClusterBuilder extends AbstractLocalClusterSpecBuilder<ElasticsearchCluster> {
private StdOutCatchingClusterBuilder() {