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
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!
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, 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..
Issue 2682: Catches unhandled exceptions
Created 17 years, 1 month ago by Balazs.Dan
Modified 10 years, 9 months ago
Reviewers: wan
Base URL: http://googletest.googlecode.com/svn/trunk/
Comments: 3