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

Issue 10735063: Create an AtExitManager around each test, to take care of stray singletons (Closed)

Created:
8 years, 5 months ago by Scott Byer
Modified:
7 years, 6 months ago
CC:
chromium-reviews, erikwright (departed), brettw-cc_chromium.org
Visibility:
Public.

Description

Create an AtExitManager around each test, to take care of stray singletons BUG=133403 TEST=unit tests run without AtExitManager warnings, and can run gtest_shuffled

Patch Set 1 #

Total comments: 1

Patch Set 2 : Wrap at the test case level as well. #

Patch Set 3 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -12 lines) Patch
M base/test/test_suite.cc View 1 2 1 chunk +46 lines, -12 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Scott Byer
Something like this?
8 years, 5 months ago (2012-07-11 22:21:41 UTC) #1
Ryan Sleevi
Yeah, this is exactly what I was thinking. However, from looking at the gtest sources, ...
8 years, 5 months ago (2012-07-11 22:30:41 UTC) #2
Scott Byer
I'm thinking that should be two AtExitManagers then, one around individual tests and an additional ...
8 years, 5 months ago (2012-07-11 22:35:18 UTC) #3
Ryan Sleevi
On 2012/07/11 22:35:18, Scott Byer wrote: > I'm thinking that should be two AtExitManagers then, ...
8 years, 5 months ago (2012-07-11 22:40:16 UTC) #4
Robert Sesek
I've tried this before. You'll hit a wall in test_shell_tests.
8 years, 5 months ago (2012-07-13 20:50:17 UTC) #5
Robert Sesek
Hit send too early! This was my CL: http://codereview.chromium.org/8947021/ But I've heard tony@ is trying ...
8 years, 5 months ago (2012-07-13 20:52:18 UTC) #6
Scott Byer
So, the thing that puzzles me is that these failures are on the try bot, ...
8 years, 5 months ago (2012-07-13 21:59:49 UTC) #7
Robert Sesek
On 2012/07/13 21:59:49, Scott Byer wrote: > So, the thing that puzzles me is that ...
8 years, 5 months ago (2012-07-13 22:10:27 UTC) #8
Ryan Sleevi
On 2012/07/13 22:10:27, rsesek wrote: > On 2012/07/13 21:59:49, Scott Byer wrote: > > So, ...
7 years, 6 months ago (2013-06-14 17:49:27 UTC) #9
Scott Byer
7 years, 6 months ago (2013-06-14 17:52:00 UTC) #10
Message was sent while issue was closed.
On 2013/06/14 17:49:27, Ryan Sleevi wrote:
> On 2012/07/13 22:10:27, rsesek wrote:
> > On 2012/07/13 21:59:49, Scott Byer wrote:
> > > So, the thing that puzzles me is that these failures are on the try bot,
yet
> > > don't happen locally. test_shell_tests run find on mac and linux.
> > > 
> > > I wouldn't mind lining up the next yak if I could debug out a pointer to
it.
> > > 
> > > Did you figure out anything from your attempt at it?
> > 
> > It seemed unsolvable easily. The test_shell_tests basically starts up the IO
> > thread (and background workers) on-demand but never shuts them down at the
end
> > of the test. So while the MessageLoop stops in between tests, it may still
> have
> > tasks on it from the previous test that then get pumped in the next test and
> are
> > using-after-free Singleton objects.
> > 
> > FWIW I saw the test_shell failures locally.
> > 
> > Also, http://code.google.com/p/chromium/issues/detail?id=113008 may be a
> problem
> > on Windows.
> 
> Ping on this? Good to close?

Yup, closed.

Powered by Google App Engine
This is Rietveld 408576698