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

Issue 8437016: Fix subtle flakiness from ZipTest. (Closed)

Created:
9 years, 1 month ago by satorux1
Modified:
9 years, 1 month ago
Reviewers:
Aaron Boodman
CC:
chromium-reviews
Visibility:
Public.

Description

Fix subtle flakiness from ZipTest. UnzipEvil and UnzipEvil2 check that we don't extract files containing .. in their file names. These tests failed if we had "levilevilevilevilevilevilevilevilevilevilevilevil" and "evil.txt" in /tmp on Linux, as we were checking the existence of these files from a temporary directory like /tmp/.org.chromium.Chromium.aXW1Gx. We should create a directory one level deeper to fix the subtle issue. TEST=touch /tmp/levilevilevilevilevilevilevilevilevilevilevilevil /tmp/evil.txt; out/Release/unit_tests --gtest_filter=ZipTest.* BUG=chromium-os:22351 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=108195

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -4 lines) Patch
M chrome/common/zip_unittest.cc View 2 chunks +10 lines, -4 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
satorux1
9 years, 1 month ago (2011-11-01 20:07:09 UTC) #1
Aaron Boodman
lgtm, thanks!
9 years, 1 month ago (2011-11-01 22:16:57 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/satorux@chromium.org/8437016/1
9 years, 1 month ago (2011-11-01 22:23:12 UTC) #3
commit-bot: I haz the power
Change committed as 108195
9 years, 1 month ago (2011-11-01 23:28:32 UTC) #4
Paweł Hajdan Jr.
I think if you could use ScopedTempDir the test would be even more solid. I ...
9 years, 1 month ago (2011-11-02 09:43:50 UTC) #5
satorux1
On 2011/11/02 09:43:50, Paweł Hajdan Jr. wrote: > I think if you could use ScopedTempDir ...
9 years, 1 month ago (2011-11-02 14:27:48 UTC) #6
Paweł Hajdan Jr.
On 2011/11/02 14:27:48, satorux1 wrote: > The test already uses ScopedTempDir, and temp directories like ...
9 years, 1 month ago (2011-11-02 18:02:35 UTC) #7
satorux1
9 years, 1 month ago (2011-11-02 23:19:01 UTC) #8
On 2011/11/02 18:02:35, Paweł Hajdan Jr. wrote:
> On 2011/11/02 14:27:48, satorux1 wrote:
> > The test already uses ScopedTempDir, and temp directories like
> > /tmp/.org.chromium.Chromium.aXW1Gx are created in SetUp() using
ScopedTempDir.
> 
> Ah right, looks like my pattern matching was too eager, and I didn't read the
> code carefully enough. Makes sense, and sorry for inaccurate comment.

Never mind. Your drive-by comments are often very useful. Keep sending these my
way. :)

Powered by Google App Engine
This is Rietveld 408576698