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

Commit 1ae6a23

Browse files
authored
Merge pull request #57 from MarcoFalke/test_fix
Fix `BOOST_CHECK_THROW`
2 parents 92bdd11 + f33acf9 commit 1ae6a23

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/object.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@
1919
#define BOOST_CHECK_THROW(stmt, excMatch) { \
2020
try { \
2121
(stmt); \
22+
assert(0 && "No exception caught"); \
2223
} catch (excMatch & e) { \
2324
} catch (...) { \
24-
assert(0); \
25+
assert(0 && "Wrong exception caught"); \
2526
} \
2627
}
2728
#define BOOST_CHECK_NO_THROW(stmt) { \

0 commit comments

Comments
 (0)