mirror of https://github.com/apache/lucene.git
LUCENE-8991: disable java.util.HashMap assertions to avoid spurious vailures due to JDK-8205399
This commit is contained in:
parent
2d3baf6e8f
commit
10da07a396
|
@ -135,7 +135,23 @@
|
|||
<property name="tests.asserts" value="true" />
|
||||
<property name="tests.policy" location="${common.dir}/tools/junit4/tests.policy"/>
|
||||
|
||||
<condition property="tests.asserts.args" value="-ea -esa" else="">
|
||||
<condition property="tests.asserts.bug.jdk8205399" value="-da:java.util.HashMap" else="">
|
||||
<!-- LUCENE-8991 / JDK-8205399: HashMap assertion bug in Java 10 and 11-->
|
||||
<and>
|
||||
<or>
|
||||
<contains string="${java.vm.name}" substring="hotspot" casesensitive="false"/>
|
||||
<contains string="${java.vm.name}" substring="openjdk" casesensitive="false"/>
|
||||
<contains string="${java.vm.name}" substring="jrockit" casesensitive="false"/>
|
||||
</or>
|
||||
<or>
|
||||
<equals arg1="${java.specification.version}" arg2="10"/>
|
||||
<equals arg1="${java.specification.version}" arg2="11"/>
|
||||
</or>
|
||||
<isfalse value="${tests.asserts.hashmap}" />
|
||||
</and>
|
||||
</condition>
|
||||
|
||||
<condition property="tests.asserts.args" value="-ea -esa ${tests.asserts.bug.jdk8205399}" else="">
|
||||
<istrue value="${tests.asserts}"/>
|
||||
</condition>
|
||||
|
||||
|
|
Loading…
Reference in New Issue