Restored cr_abort_test default message
This commit is contained in:
parent
496710164e
commit
8e66ff173f
1 changed files with 5 additions and 2 deletions
|
@ -80,8 +80,11 @@ struct criterion_assert_args {
|
|||
|
||||
// Common asserts
|
||||
|
||||
# define cr_abort_test(Message) \
|
||||
cr_assert(0, (Message))
|
||||
# define cr_abort_test(Message) \
|
||||
do { \
|
||||
const char *msg = (Message); \
|
||||
cr_assert(0, msg ? msg : "The conditions for this test were not met.");\
|
||||
} while (0)
|
||||
|
||||
# define cr_assert(...) CR_EXPAND(cr_assert_(__VA_ARGS__, 0))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue