Go to the source code of this file.
◆ abort_if
#define abort_if |
( |
|
expr, |
|
|
|
msg |
|
) |
| |
Value: if(expr) { \
fprintf(stderr, "%s:%d Abort assertion '%s' met: %s\n", \
__FILE__, __LINE__, #expr, msg); \
unitfail++; \
goto unit_test_abort; \
}
Definition at line 59 of file curlcheck.h.
◆ abort_test
#define abort_test |
( |
|
msg | ) |
|
Value: do { \
fprintf(stderr, "%s:%d test aborted: '%s'\n", \
__FILE__, __LINE__, msg); \
unitfail++; \
goto unit_test_abort; \
Definition at line 75 of file curlcheck.h.
◆ abort_unless
#define abort_unless |
( |
|
expr, |
|
|
|
msg |
|
) |
| |
Value: if(!(expr)) { \
fprintf(stderr, "%s:%d Abort assertion '%s' failed: %s\n", \
__FILE__, __LINE__, #expr, msg); \
unitfail++; \
goto unit_test_abort; \
}
Definition at line 67 of file curlcheck.h.
◆ fail
Value: do { \
fprintf(stderr, "%s:%d test failed: '%s'\n", \
__FILE__, __LINE__, msg); \
unitfail++; \
Definition at line 51 of file curlcheck.h.
◆ fail_if
#define fail_if |
( |
|
expr, |
|
|
|
msg |
|
) |
| |
Value: if(expr) { \
fprintf(stderr, "%s:%d Assertion '%s' met: %s\n", \
__FILE__, __LINE__, #expr, msg); \
unitfail++; \
}
Definition at line 25 of file curlcheck.h.
◆ fail_unless
#define fail_unless |
( |
|
expr, |
|
|
|
msg |
|
) |
| |
Value: if(!(expr)) { \
fprintf(stderr, "%s:%d Assertion '%s' failed: %s\n", \
__FILE__, __LINE__, #expr, msg); \
unitfail++; \
}
Definition at line 32 of file curlcheck.h.
◆ UNITTEST_START
Value:
{ \
(void)arg; \
fail("unit_setup() failure"); \
} \
else {
Definition at line 86 of file curlcheck.h.
◆ UNITTEST_STOP
Value: goto unit_test_abort; \
unit_test_abort: \
unit_stop(); \
} \
}
Definition at line 95 of file curlcheck.h.
◆ verify_memory
#define verify_memory |
( |
|
dynamic, |
|
|
|
check, |
|
|
|
len |
|
) |
| |
Value: if(dynamic && memcmp(dynamic, check,
len)) { \
fprintf(stderr, "%s:%d Memory buffer mismatch size %d. '%s' is not\n", \
__FILE__, __LINE__,
len, \
fprintf(stderr, "%s:%d the same as '%s'\n", __FILE__, __LINE__, \
unitfail++; \
}
Definition at line 39 of file curlcheck.h.
◆ unitfail