Closed GoogleCodeExporter closed 9 years ago
Hi,
Finally, here is my patch to solve this problem.
I've used the same trick that you used in death test macros. Thus only one
EXPECT_*
or ASSERT_* macro can be used in one line! (The same is true for ASSERT_DEATH
for
example.) I believe it is not a big restriction, however it is not for me to
decide..
I had to change the death test test, because you are using 2 EXPECT_ macro in a
death test macro which violates the new restriction. Maybe this will the
meaning of
that test also!
The format is maybe not perfect, but provides more information about the source
of
the error.
Catching is still controlled by catch_exceptions flag.
New tests implemented in gtest_unittest.cc to check the new feature.
Best regards,
Balazs
Original comment by Balazs....@gmail.com
on 19 Jul 2008 at 1:00
Attachments:
Original comment by shiq...@gmail.com
on 31 Jul 2008 at 6:40
Original comment by shiq...@gmail.com
on 31 Jul 2008 at 6:40
Based on the complexity of the change and the likelihood of it breaking existing
code, we decided that it may not be worth it.
Original comment by shiq...@gmail.com
on 5 Aug 2008 at 7:15
I am sorry I am resurrecting this wontfix, but it sounds quite bad that it is
not possible to get the reason a test fails. It is completely opaque both on
the message output and on the debugging session, as the program exits without a
chance to check a backtrace with the debugger.
Original comment by ptsne...@gmail.com
on 4 Jan 2015 at 12:42
Original issue reported on code.google.com by
Balazs....@gmail.com
on 16 Jul 2008 at 8:01