History log of /libcore/luni/src/test/java/libcore/java/util/prefs/OldAbstractPreferencesTest.java
Revision Date Author Comments
c3002fbb233734d150a2fcef30fac69260c9ac6e 15-Aug-2011 Jesse Wilson <jessewilson@google.com> Make OldAbstractPreferencesTest resistent to a dirty environment.

The CTS test harness doesn't sanitize the preferences between tests
so we need to make sure it's clean in the test.

Change-Id: Idc80ac23f97431d31c902ad6a985ee8010a008f8
f296f0cb984fb2435bedad23439c1fdc2ad61bd0 15-Aug-2011 Jesse Wilson <jessewilson@google.com> Fix a racy preferences test to not rely on disk flush latency.

This test invisibly uses two threads - the test thread and the
preference API's preference change thread. This test was relying
on flush() taking long enough that the other thread would have
posted its event before it returned.

The new test just waits up to 100ms. This is still racy but it
eliminated the false failures in my runs.

Change-Id: I87799b36cb4e5e26d8ca04e4529d1db0b936acb3
80c9f71990a6655b7b2b43dc1946487e917f0f9d 09-Dec-2010 Jesse Wilson <jessewilson@google.com> Remove prefs tests duplicated with Harmony.

We have at least one expectation set (on PreferencesTest.testImportPreferences)
where the expectation is different on Harmony than on our revised copy.

Change-Id: I9c983755a91728d2f6bdee7ec59439c10e327cda
http://b/3246523