Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(310)

Issue 17046: Re-enable DirectoryWatcherTest.SubDir on Vista (Closed)

Created:
11 years, 11 months ago by Paweł Hajdan Jr.
Modified:
9 years, 7 months ago
Reviewers:
Mark Mentovai, M-A Ruel
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Re-enable DirectoryWatcherTest.SubDir on Vista BUG=5072

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -15 lines) Patch
M base/directory_watcher_unittest.cc View 4 chunks +22 lines, -15 lines 1 comment Download
M base/directory_watcher_win.cc View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Paweł Hajdan Jr.
I managed to reproduce the failure on Vista, and tested this fix on XP and ...
11 years, 11 months ago (2009-01-02 16:54:00 UTC) #1
M-A Ruel
That looks great, thanks for looking into it. LGTM, no need to snapshot again. http://codereview.chromium.org/17046/diff/1/3 ...
11 years, 11 months ago (2009-01-02 20:47:21 UTC) #2
Paweł Hajdan Jr.
On 2009/01/02 20:47:21, M-A wrote: > That looks great, thanks for looking into it. LGTM, ...
11 years, 11 months ago (2009-01-03 10:48:34 UTC) #3
M-A Ruel
11 years, 11 months ago (2009-01-03 13:57:52 UTC) #4
On 2009/01/03 10:48:34, Paweł Hajdan Jr. wrote:
> I don't understand it. On my XP machine SubDir test passes. On buildbot it
fails
> (1 notification instead of expected 0). Do you have some idea?

No, I'll take a look next week.

> > http://codereview.chromium.org/17046/diff/1/3#newcode138
> > Line 138: #if defined(OS_WIN)
> > If the flush was done in WriteTestDirFile(), you could reduce
> kWaitForEventTime
> > to ~50ms and significantly speedup this test. What do you think?
> 
> I'm a bit afraid it could make the test flaky. In theory the flush should
result
> in an "almost instant" notification. In reality, it doesn't have to be the
case.
> If the underlying code is ok, we won't notice the difference. But if it's
wrong,
> we might get false-negatives.

If the underlying system is a VM, thread scheduling can be very flaky. Since the
"almost instant" notification is probably generated from another system thread,
we can expect significant delays. (Some other tests need to sustain having
random threads hung for > 1 second due to VM thread scheduling issues)

Powered by Google App Engine
This is Rietveld 408576698