Bug 26636 - Need a way to test for race conditions in code like LocalStorage's import
Summary: Need a way to test for race conditions in code like LocalStorage's import
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-22 17:54 PDT by Jeremy Orlow
Modified: 2009-06-24 01:07 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeremy Orlow 2009-06-22 17:54:43 PDT
We need a way to test for race conditions in code like LocalStorage's import.

https://bugs.webkit.org/show_bug.cgi?id=26629 is tracking some changes that (among other things) correct some races I've found, but we really need a way to reliably verify we're doing the right thing.

This is somewhat related to https://bugs.webkit.org/show_bug.cgi?id=26171 which is also about needing better ways to test stuff (though that bug doesn't have to do with multi-threaded code).

This is on my long-term radar.
Comment 1 Alexey Proskuryakov 2009-06-24 01:07:36 PDT
There are a few tests for races in LayoutTests in the form "repeat something for 0.5 sec" that did reliably trigger bugs, but that's not always possible, of course.