tests: fix compilation errors when using UTEST_FAIL() in one line scope
This commit is contained in:
parent
2db6415405
commit
c4564cb5d2
@ -15,8 +15,10 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
#define UTEST_FAIL(message) \
|
#define UTEST_FAIL(message) \
|
||||||
printf(" FAIL : %s (line = %i, file = %s)", #message, __LINE__, __FILE__);\
|
{\
|
||||||
return "UTEST_FAIL()";
|
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)) {\
|
||||||
|
Loading…
Reference in New Issue
Block a user