Skip to content

Commit

Permalink
Merge branch 'no-catch-unhandled-exceptions'
Browse files Browse the repository at this point in the history
Fixes #7.
  • Loading branch information
jmmv committed Jun 4, 2014
2 parents 23c570d + 0306dc8 commit a768c1c
Show file tree
Hide file tree
Showing 4 changed files with 159 additions and 213 deletions.
5 changes: 5 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ the 'tools' directory for your own consumption.
* Removed the deprecated tools. This includes atf-config, atf-report,
atf-run and atf-version.

* Issue #7: Stopped catching unhandled exceptions in atf-c++ tests. This
propagates the crash to the caller, which in turn allows it to obtain
proper debugging information. In particular, Kyua should now be able to
extract a stacktrace pinpointing the problem.


Changes in version 0.19
***********************
Expand Down
4 changes: 2 additions & 2 deletions atf-c++/macros.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,15 +196,15 @@
#define ATF_INIT_TEST_CASES(tcs) \
namespace atf { \
namespace tests { \
int run_tp(int, char* const*, \
int run_tp(int, char**, \
void (*)(std::vector< atf::tests::tc * >&)); \
} \
} \
\
static void atfu_init_tcs(std::vector< atf::tests::tc * >&); \
\
int \
main(int argc, char* const* argv) \
main(int argc, char** argv) \
{ \
return atf::tests::run_tp(argc, argv, atfu_init_tcs); \
} \
Expand Down
Loading

0 comments on commit a768c1c

Please sign in to comment.