+2004-11-09 hugo303
+
+ * tests/check_check_master.c src/check.h.in:
+ Changed failure message for fail_if.
+
2004-11-09 hugo303
* src/check.c, src/check.h.in, src/check_impl.h, src/check_run.c,
/* Fail the test case if expr is true */
#define fail_if(expr, ...)\
_fail_unless(!(expr), __FILE__, __LINE__,\
- "Assertion '"#expr"' failed", ## __VA_ARGS__, NULL)
+ "Failure '"#expr"' occured", ## __VA_ARGS__, NULL)
/* Always fail */
#define fail(...) _fail_unless(0, __FILE__, __LINE__, "Failed" , ## __VA_ARGS__, NULL)
{ "Simple Tests", -1, CK_FAILURE, "This test should fail" },
{ "Simple Tests", -1, CK_FAILURE, "Assertion '2 == 3' failed" },
{ "Simple Tests", -1, CK_FAILURE, "Assertion '4 == 5' failed" },
- { "Simple Tests", -1, CK_FAILURE, "Assertion '2 != 3' failed" },
- { "Simple Tests", -1, CK_FAILURE, "Assertion '4 != 5' failed" },
+ { "Simple Tests", -1, CK_FAILURE, "Failure '2 != 3' occured" },
+ { "Simple Tests", -1, CK_FAILURE, "Failure '4 != 5' occured" },
{ "Simple Tests", -1, CK_FAILURE, "3 != 4" },
{ "Simple Tests", -1, CK_FAILURE, "5 != 6" },
{ "Simple Tests", -1, CK_FAILURE, "7 == 7" },