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

Issue 9863056: Properly crash when triggering an ASSERT() in debug DRT. (Closed)

Created:
8 years, 8 months ago by tony
Modified:
8 years, 8 months ago
Reviewers:
tkent
CC:
chromium-reviews, darin-cc_chromium.org, Dirk Pranke, epoger
Visibility:
Public.

Description

Properly crash when triggering an ASSERT() in debug DRT. We would just print the stack trace and keep running. In webkit_unit_tests, we would print the stack trace and crash. Reverse the logic so in unit_tests, we keep going and in DRT, we crash. When rolling this into WebKit, we'll need to coordinate with the gardener since tests will start crashing on the debug bot. BUG=None Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=129689

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -8 lines) Patch
M webkit/support/webkit_support.cc View 2 chunks +7 lines, -8 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
tony
Dirk noticed this on the bot and I tracked it down.
8 years, 8 months ago (2012-03-28 22:26:55 UTC) #1
tkent
LGTM
8 years, 8 months ago (2012-03-29 00:48:49 UTC) #2
epoger
I'm puzzled, please explain... 1. Don't we ALWAYS want to crash when we encounter an ...
8 years, 8 months ago (2012-03-30 15:32:33 UTC) #3
tony
8 years, 8 months ago (2012-03-30 17:57:26 UTC) #4
On 2012/03/30 15:32:33, epoger wrote:
> I'm puzzled, please explain...
> 
> 1. Don't we ALWAYS want to crash when we encounter an ASSERT in a debug build?

Yes.  That's what this patch does except for when running webkit_unit_tests. 
When running webkit_unit_tests, if we hit an assert, we still want to run the
other unit tests (at least, that seems to be the behavior for other Chromium
unit tests).

> 2. In the description, are "webkit_unit_tests" and "unit_tests" meant to refer
> to different things or the same thing?

Same thing.

> 3. Is all of the behavior you refer to in the debug builds, or is some of it
in
> the release builds?

Debug only.

Powered by Google App Engine
This is Rietveld 408576698