diff options
author | Jeremy Sharpe <jsharpe@google.com> | 2010-05-20 18:01:34 -0700 |
---|---|---|
committer | Jeremy Sharpe <jsharpe@google.com> | 2010-05-25 11:20:15 -0700 |
commit | 59cb78e2355929587089ee436a0172af652d2aa5 (patch) | |
tree | e2eb271d21b67d221429ac3cd7b5c95c27af2bb1 /expectations/brokentests.txt | |
parent | a4a1f1ce70da1dd3a4ddf0b962b669cb78a63000 (diff) | |
download | libcore-59cb78e2355929587089ee436a0172af652d2aa5.zip libcore-59cb78e2355929587089ee436a0172af652d2aa5.tar.gz libcore-59cb78e2355929587089ee436a0172af652d2aa5.tar.bz2 |
Fix NullPointerException from TreeMap immutable entry methods by checking the return values for null before wrapping them with new SimpleImmutableEntrys.
Change-Id: Ib8a78dd13b8b2895acd5f0016bc353f763ea50be
Diffstat (limited to 'expectations/brokentests.txt')
-rw-r--r-- | expectations/brokentests.txt | 48 |
1 files changed, 43 insertions, 5 deletions
diff --git a/expectations/brokentests.txt b/expectations/brokentests.txt index 77607bb..ad2812e 100644 --- a/expectations/brokentests.txt +++ b/expectations/brokentests.txt @@ -457,20 +457,49 @@ test org.apache.harmony.luni.tests.java.util.TreeMapExtendTest#test_SubMap_headM result EXEC_FAILED pattern .*java.lang.IllegalArgumentException: 100 not in range \(100..109\].* -test org.apache.harmony.luni.tests.java.util.TreeMapExtendTest#test_Entry_setValue -result EXEC_FAILED -pattern .*java.lang.UnsupportedOperationException.*.setValue.* - # why are they using reflection to test implementation details? test org.apache.harmony.luni.tests.java.util.ArraysTest#test_swap_I_I_$Ljava_lang_Object result EXEC_FAILED pattern .*java.lang.NoSuchMethodException.* -# these tests rely on a Harmony bug where TreeMaps may have a singleton null +# all these tests rely on a Harmony bug where TreeMaps may have a singleton null, which we choose +# to disallow. test org.apache.harmony.luni.tests.java.util.SimpleImmutableEntryTest#test_SimpleImmutableEntry_Constructor_LEntry result EXEC_FAILED pattern .*java.lang.NullPointerException.*at java.util.TreeMap.find.* +test org.apache.harmony.luni.tests.java.util.TreeMapTest#test_ceilingEntry +result EXEC_FAILED +pattern .*java.lang.NullPointerException.* + +test org.apache.harmony.luni.tests.java.util.TreeMapTest#test_ceilingKey +result EXEC_FAILED +pattern .*java.lang.NullPointerException.* + +test org.apache.harmony.luni.tests.java.util.TreeMapTest#test_floorEntry +result EXEC_FAILED +pattern .*java.lang.NullPointerException.* + +test org.apache.harmony.luni.tests.java.util.TreeMapTest#test_floorKey +result EXEC_FAILED +pattern .*java.lang.NullPointerException.* + +test org.apache.harmony.luni.tests.java.util.TreeMapTest#test_higherEntry +result EXEC_FAILED +pattern .*java.lang.NullPointerException.* + +test org.apache.harmony.luni.tests.java.util.TreeMapTest#test_higherKey +result EXEC_FAILED +pattern .*java.lang.NullPointerException.* + +test org.apache.harmony.luni.tests.java.util.TreeMapTest#test_lowerEntry +result EXEC_FAILED +pattern .*java.lang.NullPointerException.* + +test org.apache.harmony.luni.tests.java.util.TreeMapTest#test_lowerKey +result EXEC_FAILED +pattern .*java.lang.NullPointerException.* + test org.apache.harmony.luni.tests.java.util.TreeMapTest#test_illegalFirstNullKey result EXEC_FAILED pattern .*java.lang.NullPointerException.*at java.util.TreeMap.find.* @@ -485,6 +514,15 @@ test org.apache.harmony.luni.tests.java.util.TreeMapTest#test_subMapLjava_lang_O result EXEC_FAILED pattern .*java.lang.NullPointerException.* +# we fail fast on not-comparable objects +test org.apache.harmony.luni.tests.java.util.TreeMapTest#test_equals +result EXEC_FAILED +pattern .*java.lang.ClassCastException: java.lang.Object.* + +test org.apache.harmony.luni.tests.java.util.TreeMapTest#test_putLjava_lang_ObjectLjava_lang_Object +result EXEC_FAILED +pattern .*java.lang.ClassCastException: java.lang.Object.* + # tests that depend on the iteration order of a hash test org.apache.harmony.luni.tests.java.util.CollectionsTest#test_unmodifiable_toString_methods result EXEC_FAILED |