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

Issue 482001: Force failing CHECK/DCHECKs to end the process on Windows.... (Closed)

Created:
11 years ago by Timur Iskhodzhanov
Modified:
9 years, 6 months ago
CC:
chromium-reviews_googlegroups.com, brettw+cc_chromium.org
Visibility:
Public.

Description

Force failing CHECK/DCHECKs to end the process on Windows. The current implementation of Windows-only hook simply calls FAIL. According to http://code.google.com/p/googletest/issues/list?cursor=234 it is a misuse of FAIL macros (it may not shut down the process). As a result, it was impossible to write death tests on windows. BUG=24885 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=34273

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 6

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -15 lines) Patch
M base/cancellation_flag_unittest.cc View 1 chunk +3 lines, -11 lines 0 comments Download
M base/test/test_suite.h View 1 2 3 4 5 3 chunks +14 lines, -4 lines 1 comment Download

Messages

Total messages: 22 (0 generated)
Timur Iskhodzhanov
Hi, I've seen your names among the recent commiters to base/test/test_suite.h On Windows, the handling ...
11 years ago (2009-12-09 22:51:50 UTC) #1
Paweł Hajdan Jr.
This seems a little hacky, so I'd really want to try other possibilities first. So, ...
11 years ago (2009-12-10 07:22:09 UTC) #2
Timur Iskhodzhanov
On 2009/12/10 07:22:09, Paweł Hajdan Jr. wrote: > So, my understanding is that we use ...
11 years ago (2009-12-10 07:50:26 UTC) #3
Paweł Hajdan Jr.
Thanks for explaining things. I don't understand yet, why if we're going to throw on ...
11 years ago (2009-12-10 08:43:55 UTC) #4
Paweł Hajdan Jr.
On 2009/12/10 08:43:55, Paweł Hajdan Jr. wrote: > Thanks for explaining things. I don't understand ...
11 years ago (2009-12-10 08:44:47 UTC) #5
Timur Iskhodzhanov
Actually, I'm not very much familiar with the code, I had these questions recently as ...
11 years ago (2009-12-10 15:34:53 UTC) #6
Paweł Hajdan Jr.
On 2009/12/10 15:34:53, Timur Iskhodzhanov wrote: > The default action of ~Logging() is to break ...
11 years ago (2009-12-10 17:19:49 UTC) #7
Timur Iskhodzhanov
On 2009/12/10 17:19:49, Paweł Hajdan Jr. wrote: > On 2009/12/10 15:34:53, Timur Iskhodzhanov wrote: > ...
11 years ago (2009-12-10 17:31:29 UTC) #8
Paweł Hajdan Jr.
> > - let's do the fixes to this patch and land it (to not ...
11 years ago (2009-12-10 17:41:00 UTC) #9
Timur Iskhodzhanov
Please take another look http://codereview.chromium.org/482001/diff/2003/2004 File base/test/test_suite.h (right): http://codereview.chromium.org/482001/diff/2003/2004#newcode151 base/test/test_suite.h:151: // Force FAIL to end ...
11 years ago (2009-12-10 17:56:39 UTC) #10
Paweł Hajdan Jr.
I've just filed http://crbug.com/29997 to track that. Please put the link somewhere in the comment. ...
11 years ago (2009-12-10 18:15:25 UTC) #11
Timur Iskhodzhanov
Done. Is it fine now? On 2009/12/10 18:15:25, Paweł Hajdan Jr. wrote: > I've just ...
11 years ago (2009-12-10 18:29:24 UTC) #12
Paweł Hajdan Jr.
Sure. LGTM.
11 years ago (2009-12-10 18:31:18 UTC) #13
Timur Iskhodzhanov
Aw, crap, that's not fine. If one test fails, it breaks the execution of the ...
11 years ago (2009-12-10 18:32:27 UTC) #14
Timur Iskhodzhanov
On 2009/12/10 18:32:27, Timur Iskhodzhanov wrote: > Aw, crap, that's not fine. > If one ...
11 years ago (2009-12-10 18:33:01 UTC) #15
Paweł Hajdan Jr.
On 2009/12/10 18:33:01, Timur Iskhodzhanov wrote: > On 2009/12/10 18:32:27, Timur Iskhodzhanov wrote: > > ...
11 years ago (2009-12-10 18:36:08 UTC) #16
M-A Ruel
Random note: Please reply to the try job email when the slave is hosed. will ...
11 years ago (2009-12-10 18:49:35 UTC) #17
Timur Iskhodzhanov
Hm, that looks like it IS the expected behaviour! On Linux, I tried the following ...
11 years ago (2009-12-10 19:05:22 UTC) #18
Paweł Hajdan Jr.
Sorry, I misinterpreted your message about other tests being "disrupted" as "they run, but behave ...
11 years ago (2009-12-10 19:34:03 UTC) #19
Timur Iskhodzhanov
In order to be sure, I've uploaded http://codereview.chromium.org/491009 which intentionally fails on CHECK in one ...
11 years ago (2009-12-10 20:18:27 UTC) #20
Paweł Hajdan Jr.
On 2009/12/10 20:18:27, Timur Iskhodzhanov wrote: > I think it is OK to commit the ...
11 years ago (2009-12-10 20:25:25 UTC) #21
M-A Ruel
11 years ago (2009-12-10 20:29:04 UTC) #22
I still have no opinion on this as long as the behavior is eventually set to be
consistent across all platforms.

lgtm

Powered by Google App Engine
This is Rietveld 408576698