Go to the source code of this file.
#define abort_if |
( |
|
expr, |
|
|
|
msg |
|
) |
| |
Value: fprintf(stderr,
"%s:%d Abort assertion '%s' met: %s\n", \
__FILE__, __LINE__, #expr, msg);
\ goto unit_test_abort; \
}
Definition at line 59 of file curlcheck.h.
#define abort_test |
( |
|
msg | ) |
|
Value: fprintf(stderr,
"%s:%d test aborted: '%s'\n", \
__FILE__, __LINE__, msg);
\ goto unit_test_abort; \
Definition at line 75 of file curlcheck.h.
#define abort_unless |
( |
|
expr, |
|
|
|
msg |
|
) |
| |
Value: fprintf(stderr,
"%s:%d Abort assertion '%s' failed: %s\n", \
__FILE__, __LINE__, #expr, msg);
\ goto unit_test_abort; \
}
Definition at line 67 of file curlcheck.h.
Value: fprintf(stderr,
"%s:%d test failed: '%s'\n", \
__FILE__, __LINE__, msg);
\
Definition at line 51 of file curlcheck.h.
#define fail_if |
( |
|
expr, |
|
|
|
msg |
|
) |
| |
Value: fprintf(stderr,
"%s:%d Assertion '%s' met: %s\n", \
__FILE__, __LINE__, #expr, msg);
\ }
Definition at line 25 of file curlcheck.h.
#define fail_unless |
( |
|
expr, |
|
|
|
msg |
|
) |
| |
Value: fprintf(stderr,
"%s:%d Assertion '%s' failed: %s\n", \
__FILE__, __LINE__, #expr, msg);
\ }
Definition at line 32 of file curlcheck.h.
Value: { \
fail(
"unit_setup() failure"); \
} \
else {
static CURLcode unit_setup(void)
if(strcmp(arg,"1305")!=0)
Definition at line 86 of file curlcheck.h.
Value:goto unit_test_abort; \
} \
}
static void unit_stop(void)
Definition at line 95 of file curlcheck.h.
#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__, \
}
char * hexdump(const unsigned char *buffer, size_t len)
Definition at line 39 of file curlcheck.h.