Keyboard Shortcuts

File
u :up to issue
m :publish + mail comments
M :edit review message
j / k :jump to file after / before current file
J / K :jump to next file with a comment after / before current file
Side-by-side diff
i :toggle intra-line diffs
e :expand all comments
c :collapse all comments
s :toggle showing all comments
n / p :next / previous diff chunk or comment
N / P :next / previous comment
<Up> / <Down> :next / previous line
<Enter> :respond to / edit current comment
d :mark current comment as done
Issue
u :up to list of issues
m :publish + mail comments
j / k :jump to patch after / before current patch
o / <Enter> :open current patch in side-by-side view
i :open current patch in unified diff view
Issue List
j / k :jump to issue after / before current issue
o / <Enter> :open current issue
# : close issue
Comment/message editing
<Ctrl> + s or <Ctrl> + Enter :save comment
<Esc> :cancel edit
Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(45)
Issues Repositories Search
Open Issues | Closed Issues | All Issues | Sign in with your Google Account to create issues and add comments

Issue 2682: Catches unhandled exceptions

Can't Edit
Can't Publish+Mail
Start Review
Created:
17 years, 5 months ago by Balazs.Dan
Modified:
11 years, 1 month ago
Reviewers:
wan
CC:
googletestframework_googlegroups.com
Base URL:
http://googletest.googlecode.com/svn/trunk/
Visibility:
Public.

Patch Set 1 #

Created: 17 years, 5 months ago
Download [raw] [tar.bz2]
Unified diffs Side-by-side diffs Delta from patch set Stats (+145 lines, -28 lines) Patch
include/gtest/gtest_pred_impl.h View 1 chunk +25 lines, -5 lines 3 comments Download
include/gtest/internal/gtest-internal.h View 2 chunks +30 lines, -4 lines 0 comments Download
include/gtest/internal/gtest-string.h View 1 chunk +2 lines, -0 lines 0 comments Download
src/gtest.cc View 1 chunk +3 lines, -0 lines 0 comments Download
test/gtest-death-test_test.cc View 3 chunks +13 lines, -12 lines 0 comments Download
test/gtest_output_test_golden_win.txt View 9 chunks +35 lines, -7 lines 0 comments Download
test/gtest_unittest.cc View 1 chunk +37 lines, -0 lines 0 comments Download
Total messages: 4
|
Balazs.Dan
Hello guys, Please review this patch! Thx, Balazs
17 years, 5 months ago (2008年07月25日 23:40:04 UTC) #1
Hello guys,
Please review this patch!
Thx,
Balazs
Sign in to reply to this message.
Zhanyong
http://codereview.appspot.com/2682/diff/1/5 File include/gtest/gtest_pred_impl.h (right): http://codereview.appspot.com/2682/diff/1/5#newcode79 Line 79: try { \ Let's get the ASSERT_THROW, etc, ...
17 years, 5 months ago (2008年08月01日 23:59:02 UTC) #2
http://codereview.appspot.com/2682/diff/1/5
File include/gtest/gtest_pred_impl.h (right):
http://codereview.appspot.com/2682/diff/1/5#newcode79
Line 79: try { \
Let's get the ASSERT_THROW, etc, macros checked in first. Just a quick note:
the code should compile when exceptions are disabled. As it is, this won't
compile in this case.
Sign in to reply to this message.
Zhanyong
http://codereview.appspot.com/2682/diff/1/5 File include/gtest/gtest_pred_impl.h (right): http://codereview.appspot.com/2682/diff/1/5#newcode100 Line 100: GTEST_CONCAT_TOKEN(gtest_label_assert_, __LINE__): \ This could break existing tests ...
17 years, 5 months ago (2008年08月02日 00:17:24 UTC) #3
http://codereview.appspot.com/2682/diff/1/5
File include/gtest/gtest_pred_impl.h (right):
http://codereview.appspot.com/2682/diff/1/5#newcode100
Line 100: GTEST_CONCAT_TOKEN(gtest_label_assert_, __LINE__): \
This could break existing tests that use multiple assertions on the same line. 
Although people may not do that deliberately, it could happen as the result of
macro expansion.
Given this and the complexity of the change, I'd suggest to withdraw the patch. 
Now that EXPECT_THROW, etc are being added, this is less useful. I'm thinking
it's not worth complicating the already complex implementation. If you had an
unhandled exception in your test, it's easy to find who threw it under a
debugger.
I understand you have put a lot of effort in this. Unfortunately not every
patch can eventually be checked in. Don't let this stop you from contributing
more great work though! Thanks!
Sign in to reply to this message.
Balazs.Dan
http://codereview.appspot.com/2682/diff/1/5 File include/gtest/gtest_pred_impl.h (right): http://codereview.appspot.com/2682/diff/1/5#newcode100 Line 100: GTEST_CONCAT_TOKEN(gtest_label_assert_, __LINE__): \ Well, you suggested on the ...
17 years, 5 months ago (2008年08月02日 00:46:06 UTC) #4
http://codereview.appspot.com/2682/diff/1/5
File include/gtest/gtest_pred_impl.h (right):
http://codereview.appspot.com/2682/diff/1/5#newcode100
Line 100: GTEST_CONCAT_TOKEN(gtest_label_assert_, __LINE__): \
Well, you suggested on the forum to use a similar trick as you used in death
test macros. Both death test macros and expect_throw macros are using the same
trick thus also not possible to use more than 1 on the same line!
This complexity is the result of message streaming. There are other very good
and handy ways to display additional messages, but that would require even
bigger modifications..
Sign in to reply to this message.
|
Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b

AltStyle によって変換されたページ (->オリジナル) /