mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-29 18:27: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()
|
||||
#endif
|
||||
|
||||
|
||||
static int unit_PassThrough = 0;
|
||||
|
||||
#define Fail(description, result) do { \
|
||||
printf("\nERROR - %s line %d failed with:", __FILE__, __LINE__); \
|
||||
printf("\n expected: "); printf description; \
|
||||
printf("\n result: "); printf result; printf("\n\n"); \
|
||||
XABORT(); \
|
||||
if(unit_PassThrough == 0)XABORT(); \
|
||||
} while(0)
|
||||
|
||||
#define Assert(test, description, result) if (!(test)) Fail(description, result)
|
||||
|
Reference in New Issue
Block a user