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

Issue 3201009: Fix gtest warnings when running the process_util_unittest. (Closed)

Created:
10 years, 4 months ago by levin
Modified:
9 years, 7 months ago
CC:
chromium-reviews, brettw-cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Fix gtest warnings when running the process_util_unittest. When I run them on OSX, I get a gtest warning about multiple threads: "Death tests use fork(), which is unsafe particularly in a threaded context. For this test, Google Test detected 2 threads." This patch fixes the warnings. BUG=43165 TEST=base_unittest --gtest_filter=OutOfMemoryDeathTest.* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=57118

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+109 lines, -48 lines) Patch
M base/process_util_unittest.cc View 8 chunks +109 lines, -48 lines 1 comment Download

Messages

Total messages: 9 (0 generated)
levin
10 years, 4 months ago (2010-08-23 21:27:54 UTC) #1
vandebo (ex-Chrome)
This is bug 43165, or at least related. Does the suggested fix in the bug ...
10 years, 4 months ago (2010-08-23 21:52:14 UTC) #2
levin
On Mon, Aug 23, 2010 at 2:52 PM, <vandebo@chromium.org> wrote: > This is bug 43165, ...
10 years, 4 months ago (2010-08-23 21:58:19 UTC) #3
vandebo (ex-Chrome)
On 2010/08/23 21:58:19, levin wrote: > On Mon, Aug 23, 2010 at 2:52 PM, <mailto:vandebo@chromium.org> ...
10 years, 4 months ago (2010-08-23 22:16:57 UTC) #4
vandebo (ex-Chrome)
For my own edification, what in EnableTerminationOnOutOfMemory creates a new thread, I didn't see it. ...
10 years, 4 months ago (2010-08-23 22:19:00 UTC) #5
levin
Note that this patch addresses two things: 1. It changes the name to *DeathTest which ...
10 years, 4 months ago (2010-08-23 22:31:27 UTC) #6
Avi (use Gerrit)
> What in the OSX version of EnableTerminationOnOutOfMemory() (in > process_util_mac.mm) causes a new thread? ...
10 years, 4 months ago (2010-08-23 23:34:18 UTC) #7
levin
On Mon, Aug 23, 2010 at 4:34 PM, <avi@chromium.org> wrote: > What in the OSX ...
10 years, 4 months ago (2010-08-23 23:37:49 UTC) #8
Avi (use Gerrit)
10 years, 4 months ago (2010-08-24 14:06:51 UTC) #9
On 2010/08/23 23:37:49, levin wrote:
> It must be doing something that causes the OS to create another thread on
> 10.6

You are indeed correct. Investigating...

Powered by Google App Engine
This is Rietveld 408576698