Skip to content
This repository has been archived by the owner on Feb 15, 2024. It is now read-only.

Commit

Permalink
Merge pull request #57 from MarcoFalke/test_fix
Browse files Browse the repository at this point in the history
Fix `BOOST_CHECK_THROW`
  • Loading branch information
jgarzik committed Feb 3, 2019
2 parents 92bdd11 + f33acf9 commit 1ae6a23
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/object.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@
#define BOOST_CHECK_THROW(stmt, excMatch) { \
try { \
(stmt); \
assert(0 && "No exception caught"); \
} catch (excMatch & e) { \
} catch (...) { \
assert(0); \
assert(0 && "Wrong exception caught"); \
} \
}
#define BOOST_CHECK_NO_THROW(stmt) { \
Expand Down

0 comments on commit 1ae6a23

Please sign in to comment.