mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 11:17:29 +02:00
flag to pass throug errors for correcting as many error information as possible.
This commit is contained in:
@ -32,11 +32,14 @@
|
|||||||
#define XABORT() abort()
|
#define XABORT() abort()
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
static int unit_PassThrough = 0;
|
||||||
|
|
||||||
#define Fail(description, result) do { \
|
#define Fail(description, result) do { \
|
||||||
printf("\nERROR - %s line %d failed with:", __FILE__, __LINE__); \
|
printf("\nERROR - %s line %d failed with:", __FILE__, __LINE__); \
|
||||||
printf("\n expected: "); printf description; \
|
printf("\n expected: "); printf description; \
|
||||||
printf("\n result: "); printf result; printf("\n\n"); \
|
printf("\n result: "); printf result; printf("\n\n"); \
|
||||||
XABORT(); \
|
if(unit_PassThrough == 0)XABORT(); \
|
||||||
} while(0)
|
} while(0)
|
||||||
|
|
||||||
#define Assert(test, description, result) if (!(test)) Fail(description, result)
|
#define Assert(test, description, result) if (!(test)) Fail(description, result)
|
||||||
|
Reference in New Issue
Block a user