Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(401)

Issue 2682: Catches unhandled exceptions

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

Patch Set 1 #

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

Messages

Total messages: 4
Balazs.Dan
Hello guys, Please review this patch! Thx, Balazs
17 years, 1 month ago (2008-07-25 23:40:04 UTC) #1
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, 1 month ago (2008-08-01 23:59:02 UTC) #2
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, 1 month ago (2008-08-02 00:17:24 UTC) #3
Balazs.Dan
17 years, 1 month 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