don't fail tests in a confusing way with a broken jvm

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1421580 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2012-12-13 22:25:02 +00:00
parent a3f456e378
commit 052a8d86a1
1 changed files with 3 additions and 0 deletions

View File

@ -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");
}
}
/**