Apache Lucene open-source search software
don't fail tests in a confusing way with a broken jvm
Robert Muir052a8d86a1e2
diff --git a/lucene/test-framework/src/java/org/apache/lucene/util/TestRuleSetupAndRestoreClassEnv.java b/lucene/test-framework/src/java/org/apache/lucene/util/TestRuleSetupAndRestoreClassEnv.javaindex e87720d59f5..fe7cfa65a84 100644--- a/lucene/test-framework/src/java/org/apache/lucene/util/TestRuleSetupAndRestoreClassEnv.java+++ b/lucene/test-framework/src/java/org/apache/lucene/util/TestRuleSetupAndRestoreClassEnv.java@@ -200,6 +200,9 @@ final class TestRuleSetupAndRestoreClassEnv extends AbstractBeforeAfterRule {Arrays.toString(avoidCodecs.toArray()));throw e;}+ if (Constants.JAVA_VENDOR.startsWith("IBM")) {+ throw new AssumptionViolatedException("refusing to execute on broken jvm");+ }}/**