mirror of
https://github.com/moparisthebest/curl
synced 2025-02-28 17:31:46 -05:00
tests: Fixed header files to comply with our code style
This commit is contained in:
parent
51fb24ce7f
commit
066b224672
@ -355,7 +355,7 @@ extern int unitfail;
|
|||||||
|
|
||||||
#define exe_select_test(A, B, C, D, E, Y, Z) do { \
|
#define exe_select_test(A, B, C, D, E, Y, Z) do { \
|
||||||
int ec; \
|
int ec; \
|
||||||
if(select_wrapper((A), (B), (C), (D), (E)) == -1 ) { \
|
if(select_wrapper((A), (B), (C), (D), (E)) == -1) { \
|
||||||
ec = SOCKERRNO; \
|
ec = SOCKERRNO; \
|
||||||
fprintf(stderr, "%s:%d select() failed, with " \
|
fprintf(stderr, "%s:%d select() failed, with " \
|
||||||
"errno %d (%s)\n", \
|
"errno %d (%s)\n", \
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
/* The fail macros mark the current test step as failed, and continue */
|
/* The fail macros mark the current test step as failed, and continue */
|
||||||
#define fail_if(expr, msg) \
|
#define fail_if(expr, msg) \
|
||||||
if(expr) { \
|
if(expr) { \
|
||||||
fprintf(stderr, "%s:%d Assertion '%s' met: %s\n" , \
|
fprintf(stderr, "%s:%d Assertion '%s' met: %s\n", \
|
||||||
__FILE__, __LINE__, #expr, msg); \
|
__FILE__, __LINE__, #expr, msg); \
|
||||||
unitfail++; \
|
unitfail++; \
|
||||||
}
|
}
|
||||||
@ -57,7 +57,7 @@
|
|||||||
/* The abort macros mark the current test step as failed, and exit the test */
|
/* The abort macros mark the current test step as failed, and exit the test */
|
||||||
#define abort_if(expr, msg) \
|
#define abort_if(expr, msg) \
|
||||||
if(expr) { \
|
if(expr) { \
|
||||||
fprintf(stderr, "%s:%d Abort assertion '%s' met: %s\n" , \
|
fprintf(stderr, "%s:%d Abort assertion '%s' met: %s\n", \
|
||||||
__FILE__, __LINE__, #expr, msg); \
|
__FILE__, __LINE__, #expr, msg); \
|
||||||
unitfail++; \
|
unitfail++; \
|
||||||
goto unit_test_abort; \
|
goto unit_test_abort; \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user