mirror of
https://github.com/curl/curl.git
synced 2026-08-25 17:33:32 +03:00
tests: make the unit test result type CURLcode
Before this patch, the result code was a mixture of `int` and `CURLcode`. Also adjust casts and fix a couple of minor issues found along the way. Cherry-picked from #13489 Closes #13600
This commit is contained in:
parent
dad03dc593
commit
25cbc2f79a
221 changed files with 619 additions and 616 deletions
|
|
@ -68,8 +68,8 @@ extern int select_wrapper(int nfds, fd_set *rd, fd_set *wr, fd_set *exc,
|
|||
|
||||
extern void wait_ms(int ms); /* wait this many milliseconds */
|
||||
|
||||
extern int test(char *URL); /* the actual test function provided by each
|
||||
individual libXXX.c file */
|
||||
extern CURLcode test(char *URL); /* the actual test function provided by each
|
||||
individual libXXX.c file */
|
||||
|
||||
extern char *hexdump(const unsigned char *buffer, size_t len);
|
||||
|
||||
|
|
@ -490,11 +490,11 @@ extern int unitfail;
|
|||
chk_global_init((A), (__FILE__), (__LINE__))
|
||||
|
||||
#define NO_SUPPORT_BUILT_IN \
|
||||
int test(char *URL) \
|
||||
CURLcode test(char *URL) \
|
||||
{ \
|
||||
(void)URL; \
|
||||
fprintf(stderr, "Missing support\n"); \
|
||||
return 1; \
|
||||
return (CURLcode)1; \
|
||||
}
|
||||
|
||||
/* ---------------------------------------------------------------- */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue