utest: add new utest macro UTEST_FAIL()
This commit is contained in:
parent
108acf2ccd
commit
02e7508ee6
@ -14,6 +14,10 @@
|
|||||||
return #test;\
|
return #test;\
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define UTEST_FAIL(message) \
|
||||||
|
printf(" FAIL : %s (line = %i, file = %s)", #message, __LINE__, __FILE__);\
|
||||||
|
return "UTEST_FAIL()";
|
||||||
|
|
||||||
#define UTEST_ASSERT_MSG(test, message) \
|
#define UTEST_ASSERT_MSG(test, message) \
|
||||||
if (!(test)) {\
|
if (!(test)) {\
|
||||||
printf(message);\
|
printf(message);\
|
||||||
|
Loading…
Reference in New Issue
Block a user