Wednesday, March 14, 2012

[android-developers] CTS fail on tests.api.java.util.WeakHashMapTest#test_keySet

run cts run cts -c tests.api.java.util.WeakHashMapTest -m test_keySet

On ICS platform, sometimes will fail and show this message:
junit.framework.AssertionFailedError: Incorrect number of keys
returned after gc, expected:<99> but was:<100>
at
tests.api.java.util.WeakHashMapTest.test_keySet(WeakHashMapTest.java:
322)
at java.lang.reflect.Method.invokeNative(Native Method)
at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:169)
at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:154)
at
android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:
537)
at android.app.Instrumentation
$InstrumentationThread.run(Instrumentation.java:1551)


Any one meet this before? Why?

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment