Closed
Bug 844869
Opened 12 years ago
Closed 12 years ago
NS_ASSERTION should be fatal with GTest
Categories
(Testing :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla22
People
(Reporter: BenWa, Assigned: BenWa)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
451 bytes,
patch
|
dbaron
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Comment 1•12 years ago
|
||
Looks like we need XPCOM_DEBUG_BREAK=stack-and-abort:
http://mxr.mozilla.org/mozilla-central/source/xpcom/base/nsDebugImpl.cpp#211
Assignee | ||
Comment 2•12 years ago
|
||
Blocks: 279923
Comment on attachment 717911 [details] [diff] [review]
patch
Are you sure you don't want the final parameter to be true?
It seems a little cleaner doing this in whatever (make/python/shell) code runs this, but I suppose doing it in the C++ is fine.
Please test that an NS_ASSERTION firing actually causes a failure.
Attachment #717911 -
Flags: review?(dbaron) → review+
Assignee | ||
Comment 4•12 years ago
|
||
(In reply to David Baron [:dbaron] (don't cc:, use needinfo? instead) from comment #3)
> Comment on attachment 717911 [details] [diff] [review]
> patch
>
> Are you sure you don't want the final parameter to be true?
>
Well I though this would be the default value. If something wanted to override the default I think it make sense to let it. If you have an example where this would be bad I can change it.
> It seems a little cleaner doing this in whatever (make/python/shell) code
> runs this, but I suppose doing it in the C++ is fine.
Part of my motivation is I'd like ./firefox -unittest to give you a sane default run of this. This makes it easy to run in a debugger for example.
>
> Please test that an NS_ASSERTION firing actually causes a failure.
Done
Assignee | ||
Comment 5•12 years ago
|
||
Comment 6•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla22
You need to log in
before you can comment on or make changes to this bug.
Description
•