Exclude more test cases for IBM JDK 6 as these are failing for release SR15.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1542074 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8cc80dd1a4
commit
04af9bc8ee
|
@ -137,6 +137,17 @@ import junit.framework.TestSuite;
|
||||||
*/
|
*/
|
||||||
public class BulkTest extends TestCase implements Cloneable {
|
public class BulkTest extends TestCase implements Cloneable {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* IBM JDK 1.6.0 has several bugs in their java.util.TreeMap implementation.
|
||||||
|
*/
|
||||||
|
protected static final boolean IBMJDK16;
|
||||||
|
static {
|
||||||
|
final String vmName = System.getProperty("java.vm.name");
|
||||||
|
final String version = System.getProperty("java.version");
|
||||||
|
|
||||||
|
IBMJDK16 = vmName != null && vmName.equals("IBM J9 VM") &&
|
||||||
|
version != null && version.equals("1.6.0");
|
||||||
|
}
|
||||||
|
|
||||||
// Note: BulkTest is Cloneable to make it easier to construct
|
// Note: BulkTest is Cloneable to make it easier to construct
|
||||||
// BulkTest instances for simple test methods that are defined in
|
// BulkTest instances for simple test methods that are defined in
|
||||||
|
|
|
@ -155,27 +155,21 @@ public class DualTreeBidiMap2Test<K extends Comparable<K>, V extends Comparable<
|
||||||
public String[] ignoredTests() {
|
public String[] ignoredTests() {
|
||||||
String recursiveTest = "DualTreeBidiMap2Test.bulkTestInverseMap.bulkTestInverseMap";
|
String recursiveTest = "DualTreeBidiMap2Test.bulkTestInverseMap.bulkTestInverseMap";
|
||||||
|
|
||||||
// there are several bugs in the following JVM:
|
if (IBMJDK16) {
|
||||||
// IBM J9 VM build 2.4, JRE 1.6.0 IBM J9 2.4 Linux x86-32 jvmxi3260sr12-20121024_126067
|
final String preSub = "DualTreeBidiMap2Test.bulkTestSubMap.";
|
||||||
// thus disabling tests related to these bugs
|
final String preTail = "DualTreeBidiMap2Test.bulkTestTailMap.";
|
||||||
|
|
||||||
final String vmName = System.getProperty("java.vm.name");
|
|
||||||
final String version = System.getProperty("java.version");
|
|
||||||
|
|
||||||
if (vmName == null || version == null) {
|
|
||||||
return new String[] { recursiveTest };
|
|
||||||
}
|
|
||||||
|
|
||||||
if (vmName.equals("IBM J9 VM") && version.equals("1.6.0")) {
|
|
||||||
final String preSub = "DualTreeBidiMap2Test.bulkTestSubMap.bulkTestMap";
|
|
||||||
final String preTail = "DualTreeBidiMap2Test.bulkTestTailMap.bulkTestMap";
|
|
||||||
return new String[] {
|
return new String[] {
|
||||||
recursiveTest,
|
recursiveTest,
|
||||||
preSub + "EntrySet.testCollectionIteratorRemove",
|
preSub + "bulkTestMapEntrySet.testCollectionIteratorRemove",
|
||||||
preSub + "Values.testCollectionIteratorRemove",
|
preSub + "bulkTestMapValues.testCollectionIteratorRemove",
|
||||||
preTail + "Values.testCollectionClear",
|
preTail + "testMapRemove",
|
||||||
preTail + "Values.testCollectionRemoveAll",
|
preTail + "bulkTestMapEntrySet.testCollectionIteratorRemove",
|
||||||
preTail + "Values.testCollectionRetainAll"
|
preTail + "bulkTestMapEntrySet.testCollectionRemoveAll",
|
||||||
|
preTail + "bulkTestMapKeySet.testCollectionIteratorRemove",
|
||||||
|
preTail + "bulkTestMapKeySet.testCollectionRemoveAll",
|
||||||
|
preTail + "bulkTestMapValues.testCollectionClear",
|
||||||
|
preTail + "bulkTestMapValues.testCollectionRemoveAll",
|
||||||
|
preTail + "bulkTestMapValues.testCollectionRetainAll"
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
return new String[] { recursiveTest };
|
return new String[] { recursiveTest };
|
||||||
|
|
|
@ -48,29 +48,23 @@ public class DualTreeBidiMapTest<K extends Comparable<K>, V extends Comparable<V
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public String[] ignoredTests() {
|
public String[] ignoredTests() {
|
||||||
String recursiveTest = "DualTreeBidiMapTest.bulkTestInverseMap.bulkTestInverseMap";
|
final String recursiveTest = "DualTreeBidiMapTest.bulkTestInverseMap.bulkTestInverseMap";
|
||||||
|
|
||||||
// there are several bugs in the following JVM:
|
if (IBMJDK16) {
|
||||||
// IBM J9 VM build 2.4, JRE 1.6.0 IBM J9 2.4 Linux x86-32 jvmxi3260sr12-20121024_126067
|
final String preSub = "DualTreeBidiMapTest.bulkTestSubMap.";
|
||||||
// thus disabling tests related to these bugs
|
final String preTail = "DualTreeBidiMapTest.bulkTestTailMap.";
|
||||||
|
|
||||||
final String vmName = System.getProperty("java.vm.name");
|
|
||||||
final String version = System.getProperty("java.version");
|
|
||||||
|
|
||||||
if (vmName == null || version == null) {
|
|
||||||
return new String[] { recursiveTest };
|
|
||||||
}
|
|
||||||
|
|
||||||
if (vmName.equals("IBM J9 VM") && version.equals("1.6.0")) {
|
|
||||||
final String preSub = "DualTreeBidiMapTest.bulkTestSubMap.bulkTestMap";
|
|
||||||
final String preTail = "DualTreeBidiMapTest.bulkTestTailMap.bulkTestMap";
|
|
||||||
return new String[] {
|
return new String[] {
|
||||||
recursiveTest,
|
recursiveTest,
|
||||||
preSub + "EntrySet.testCollectionIteratorRemove",
|
preSub + "bulkTestMapEntrySet.testCollectionIteratorRemove",
|
||||||
preSub + "Values.testCollectionIteratorRemove",
|
preSub + "bulkTestMapValues.testCollectionIteratorRemove",
|
||||||
preTail + "Values.testCollectionClear",
|
preTail + "testMapRemove",
|
||||||
preTail + "Values.testCollectionRemoveAll",
|
preTail + "bulkTestMapEntrySet.testCollectionIteratorRemove",
|
||||||
preTail + "Values.testCollectionRetainAll"
|
preTail + "bulkTestMapEntrySet.testCollectionRemoveAll",
|
||||||
|
preTail + "bulkTestMapKeySet.testCollectionIteratorRemove",
|
||||||
|
preTail + "bulkTestMapKeySet.testCollectionRemoveAll",
|
||||||
|
preTail + "bulkTestMapValues.testCollectionClear",
|
||||||
|
preTail + "bulkTestMapValues.testCollectionRemoveAll",
|
||||||
|
preTail + "bulkTestMapValues.testCollectionRetainAll"
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
return new String[] { recursiveTest };
|
return new String[] { recursiveTest };
|
||||||
|
|
|
@ -47,27 +47,21 @@ public class TransformedSortedMapTest<K, V> extends AbstractSortedMapTest<K, V>
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String[] ignoredTests() {
|
public String[] ignoredTests() {
|
||||||
// there are several bugs in the following JVM:
|
if (IBMJDK16) {
|
||||||
// IBM J9 VM build 2.4, JRE 1.6.0 IBM J9 2.4 Linux x86-32 jvmxi3260sr12-20121024_126067
|
final String preSubMap = "TransformedSortedMapTest.bulkTestSubMap.";
|
||||||
// thus disabling tests related to these bugs
|
final String preTailMap = "TransformedSortedMapTest.bulkTestTailMap.";
|
||||||
|
|
||||||
final String vmName = System.getProperty("java.vm.name");
|
|
||||||
final String version = System.getProperty("java.version");
|
|
||||||
|
|
||||||
if (vmName == null || version == null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (vmName.equals("IBM J9 VM") && version.equals("1.6.0")) {
|
|
||||||
final String preSubMap = "TransformedSortedMapTest.bulkTestSubMap.bulkTestMap";
|
|
||||||
final String preTailMap = "TransformedSortedMapTest.bulkTestTailMap.bulkTestMap";
|
|
||||||
return new String[] {
|
return new String[] {
|
||||||
preSubMap + "EntrySet.testCollectionIteratorRemove",
|
preSubMap + "bulkTestMapEntrySet.testCollectionIteratorRemove",
|
||||||
preSubMap + "KeySet.testCollectionRemove",
|
preSubMap + "bulkTestMapKeySet.testCollectionRemove",
|
||||||
preSubMap + "Values.testCollectionIteratorRemove",
|
preSubMap + "bulkTestMapValues.testCollectionIteratorRemove",
|
||||||
preTailMap + "Values.testCollectionClear",
|
preTailMap + "testMapRemove",
|
||||||
preTailMap + "Values.testCollectionRemoveAll",
|
preTailMap + "bulkTestMapEntrySet.testCollectionIteratorRemove",
|
||||||
preTailMap + "Values.testCollectionRetainAll"
|
preTailMap + "bulkTestMapEntrySet.testCollectionRemoveAll",
|
||||||
|
preTailMap + "bulkTestMapKeySet.testCollectionIteratorRemove",
|
||||||
|
preTailMap + "bulkTestMapKeySet.testCollectionRemoveAll",
|
||||||
|
preTailMap + "bulkTestMapValues.testCollectionClear",
|
||||||
|
preTailMap + "bulkTestMapValues.testCollectionRemoveAll",
|
||||||
|
preTailMap + "bulkTestMapValues.testCollectionRetainAll"
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
return null;
|
return null;
|
||||||
|
|
|
@ -88,6 +88,23 @@ public class UnmodifiableTrieTest<V> extends AbstractSortedMapTest<String, V> {
|
||||||
|
|
||||||
//-----------------------------------------------------------------------
|
//-----------------------------------------------------------------------
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Override to prevent infinite recursion of tests.
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public String[] ignoredTests() {
|
||||||
|
if (IBMJDK16) {
|
||||||
|
final String prefix = "UnmodifiableTrieTest.";
|
||||||
|
return new String[] {
|
||||||
|
prefix + "bulkTestHeadMap.bulkTestMapEntrySet.testCollectionToArray2",
|
||||||
|
prefix + "bulkTestTailMap.bulkTestMapEntrySet.testCollectionToArray2",
|
||||||
|
prefix + "bulkTestSubMap.bulkTestMapEntrySet.testCollectionToArray2"
|
||||||
|
};
|
||||||
|
} else {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getCompatibilityVersion() {
|
public String getCompatibilityVersion() {
|
||||||
return "4";
|
return "4";
|
||||||
|
|
Loading…
Reference in New Issue