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

Issue 18830: FileUtilTest.Contains failed on Vista Home 64 (and wine)... (Closed)

Created:
11 years, 11 months ago by dank
Modified:
9 years, 7 months ago
Reviewers:
Aaron Boodman
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

FileUtilTest.Contains failed on Vista Home 64 (and wine) because deleting an empty directory tree fails there with ERROR_FILE_NOT_FOUND, so allow that return value. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=8733

Patch Set 1 #

Total comments: 2

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -4 lines) Patch
M base/file_util_win.cc View 1 3 chunks +7 lines, -4 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
dank
Hi Aaron, a test you checked in two weeks ago happens to fail reliably on ...
11 years, 11 months ago (2009-01-26 23:38:05 UTC) #1
Aaron Boodman
11 years, 11 months ago (2009-01-27 17:14:09 UTC) #2
Thanks for the patch!

http://codereview.chromium.org/18830/diff/1/3
File base/file_util_unittest.cc (right):

http://codereview.chromium.org/18830/diff/1/3#newcode987
Line 987: file_util::Delete(data_dir, true);
With the comments from the other file applied, the assert should go back here.

http://codereview.chromium.org/18830/diff/1/2
File base/file_util_win.cc (right):

http://codereview.chromium.org/18830/diff/1/2#newcode93
Line 93: LOG(INFO) << "SHFileOperation failed, err " << err;
I think we should ignore errors from the file not being there. That seems to be
consistent with what other platforms do, and it makes it an easier API for
clients to deal with.

Also I don't think we should LOG here, just leave that to clients.

Powered by Google App Engine
This is Rietveld 408576698