For libtests, tunits, units.
Also:
- lib3033: tidy up headers.
- lib/netrc: constify an arg in `Curl_parsenetrc()`.
Closes #18076
*/
NETRCcode Curl_parsenetrc(struct store_netrc *store, const char *host,
char **loginp, char **passwordp,
- char *netrcfile)
+ const char *netrcfile)
{
NETRCcode retcode = NETRC_OK;
char *filealloc = NULL;
void Curl_netrc_cleanup(struct store_netrc *s);
NETRCcode Curl_parsenetrc(struct store_netrc *s, const char *host,
- char **loginp, char **passwordp, char *filename);
+ char **loginp, char **passwordp,
+ const char *filename);
/* Assume: (*passwordp)[0]=0, host[0] != 0.
* If (*loginp)[0] = 0, search for login and password within a machine
* section in the netrc.
return select(nfds, rd, wr, exc, tv);
}
-char *libtest_arg2 = NULL;
-char *libtest_arg3 = NULL;
-char *libtest_arg4 = NULL;
+const char *libtest_arg2 = NULL;
+const char *libtest_arg3 = NULL;
+const char *libtest_arg4 = NULL;
int test_argc;
-char **test_argv;
+const char **test_argv;
int testnum;
struct curltime tv_test_start; /* for test timing */
}
-int main(int argc, char **argv)
+int main(int argc, const char **argv)
{
- char *URL;
+ const char *URL;
CURLcode result;
entry_func_t entry_func;
- char *entry_name;
+ const char *entry_name;
char *env;
size_t tmp;
#include <curl/curl.h>
-typedef CURLcode (*entry_func_t)(char *);
+typedef CURLcode (*entry_func_t)(const char *);
struct entry_s {
const char *name;
if((res = curl_multi_setopt((A), (B), (C))) != CURLE_OK) \
goto test_cleanup
-extern char *libtest_arg2; /* set by first.c to the argv[2] or NULL */
-extern char *libtest_arg3; /* set by first.c to the argv[3] or NULL */
-extern char *libtest_arg4; /* set by first.c to the argv[4] or NULL */
+extern const char *libtest_arg2; /* set by first.c to the argv[2] or NULL */
+extern const char *libtest_arg3; /* set by first.c to the argv[3] or NULL */
+extern const char *libtest_arg4; /* set by first.c to the argv[4] or NULL */
/* argc and argv as passed in to the main() function */
extern int test_argc;
-extern char **test_argv;
+extern const char **test_argv;
extern int testnum;
extern struct curltime tv_test_start; /* for test timing */
/* for debugging: */
/* #define SINGLETEST 9 */
-static CURLcode test_lib1156(char *URL)
+static CURLcode test_lib1156(const char *URL)
{
CURLcode res;
CURL *curl;
} \
} while(0)
-static CURLcode test_lib1301(char *URL)
+static CURLcode test_lib1301(const char *URL)
{
int rc;
(void)URL;
} \
} while(0)
-static CURLcode test_lib1308(char *URL)
+static CURLcode test_lib1308(const char *URL)
{
int errorcount = 0;
CURLFORMcode rc;
return len;
}
-static CURLcode test_lib1485(char *URL)
+static CURLcode test_lib1485(const char *URL)
{
CURL *curls = NULL;
CURLcode res = CURLE_OK;
#include "memdebug.h"
-static CURLcode test_lib1500(char *URL)
+static CURLcode test_lib1500(const char *URL)
{
CURL *curls = NULL;
CURLM *multi = NULL;
#include "memdebug.h"
-static CURLcode test_lib1501(char *URL)
+static CURLcode test_lib1501(const char *URL)
{
static const long HANG_TIMEOUT = 30 * 1000;
/* 500 milliseconds allowed. An extreme number but lets be really
#include "memdebug.h"
-static CURLcode test_lib1502(char *URL)
+static CURLcode test_lib1502(const char *URL)
{
CURL *easy = NULL;
CURL *dup;
#include "memdebug.h"
-static CURLcode test_lib1506(char *URL)
+static CURLcode test_lib1506(const char *URL)
{
CURLcode res = CURLE_OK;
CURL *curl[NUM_HANDLES] = {0};
char target_url[256];
char dnsentry[256];
struct curl_slist *slist = NULL, *slist2;
- char *port = libtest_arg3;
- char *address = libtest_arg2;
+ const char *port = libtest_arg3;
+ const char *address = libtest_arg2;
(void)URL;
return CURL_READFUNC_ABORT;
}
-static CURLcode test_lib1507(char *URL)
+static CURLcode test_lib1507(const char *URL)
{
static const int MULTI_PERFORM_HANG_TIMEOUT = 60 * 1000;
#include "memdebug.h"
-static CURLcode test_lib1508(char *URL)
+static CURLcode test_lib1508(const char *URL)
{
CURLcode res = CURLE_OK;
CURLM *m = NULL;
static unsigned long realHeaderSize = 0;
-static CURLcode test_lib1509(char *URL)
+static CURLcode test_lib1509(const char *URL)
{
long headerSize;
CURLcode code;
#include "memdebug.h"
-static CURLcode test_lib1510(char *URL)
+static CURLcode test_lib1510(const char *URL)
{
static const int NUM_URLS = 4;
char target_url[256];
char dnsentry[256];
struct curl_slist *slist = NULL, *slist2;
- char *port = libtest_arg3;
- char *address = libtest_arg2;
+ const char *port = libtest_arg3;
+ const char *address = libtest_arg2;
(void)URL;
#include "memdebug.h"
-static CURLcode test_lib1511(char *URL)
+static CURLcode test_lib1511(const char *URL)
{
long unmet;
CURL *curl = NULL;
#include "memdebug.h"
-static CURLcode test_lib1512(char *URL)
+static CURLcode test_lib1512(const char *URL)
{
CURLcode res = CURLE_OK;
CURL *curl[2] = {NULL, NULL};
- char *port = libtest_arg3;
- char *address = libtest_arg2;
+ const char *port = libtest_arg3;
+ const char *address = libtest_arg2;
char dnsentry[256];
struct curl_slist *slist = NULL;
size_t i;
return 1;
}
-static CURLcode test_lib1513(char *URL)
+static CURLcode test_lib1513(const char *URL)
{
CURL *curl;
CURLcode res = CURLE_OK;
return 0; /* no more data left to deliver */
}
-static CURLcode test_lib1514(char *URL)
+static CURLcode test_lib1514(const char *URL)
{
CURL *curl;
CURLcode result = CURLE_OK;
#define DNS_TIMEOUT 1L
-static CURLcode do_one_request(CURLM *m, char *URL, char *resolve)
+static CURLcode do_one_request(CURLM *m, const char *URL, const char *resolve)
{
CURL *curls;
struct curl_slist *resolve_list = NULL;
return res;
}
-static CURLcode test_lib1515(char *URL)
+static CURLcode test_lib1515(const char *URL)
{
CURLM *multi = NULL;
CURLcode res = CURLE_OK;
- char *address = libtest_arg2;
- char *port = libtest_arg3;
- char *path = URL;
+ const char *path = URL;
+ const char *address = libtest_arg2;
+ const char *port = libtest_arg3;
char dns_entry[256];
int i;
int count = 2;
return tocopy;
}
-static CURLcode test_lib1517(char *URL)
+static CURLcode test_lib1517(const char *URL)
{
static const char testdata[] =
"this is what we post to the silly web server\n";
return 0;
}
-static CURLcode test_lib1518(char *URL)
+static CURLcode test_lib1518(const char *URL)
{
CURL *curl;
CURLcode res = CURLE_OK;
return 0;
}
-static CURLcode test_lib1520(char *URL)
+static CURLcode test_lib1520(const char *URL)
{
CURLcode res;
CURL *curl;
return CURL_SOCKOPT_OK;
}
-static CURLcode test_lib1522(char *URL)
+static CURLcode test_lib1522(const char *URL)
{
static char g_Data[40 * 1024]; /* POST 40KB */
return curl_easy_perform(hnd);
}
-static CURLcode test_lib1523(char *URL)
+static CURLcode test_lib1523(const char *URL)
{
CURLcode ret;
CURL *hnd;
return strlen(t1525_testdata);
}
-static CURLcode test_lib1525(char *URL)
+static CURLcode test_lib1525(const char *URL)
{
CURL *curl = NULL;
CURLcode res = CURLE_FAILED_INIT;
return strlen(t1526_testdata);
}
-static CURLcode test_lib1526(char *URL)
+static CURLcode test_lib1526(const char *URL)
{
CURL *curl = NULL;
CURLcode res = CURLE_FAILED_INIT;
return strlen(t1527_testdata);
}
-static CURLcode test_lib1527(char *URL)
+static CURLcode test_lib1527(const char *URL)
{
CURL *curl = NULL;
CURLcode res = CURLE_FAILED_INIT;
#include "memdebug.h"
-static CURLcode test_lib1528(char *URL)
+static CURLcode test_lib1528(const char *URL)
{
CURL *curl = NULL;
CURLcode res = CURLE_FAILED_INIT;
#include "memdebug.h"
-static CURLcode test_lib1529(char *URL)
+static CURLcode test_lib1529(const char *URL)
{
CURL *curl = NULL;
CURLcode res = CURLE_FAILED_INIT;
return CURL_SOCKET_BAD;
}
-static CURLcode test_lib1530(char *URL)
+static CURLcode test_lib1530(const char *URL)
{
CURL *curl = NULL;
CURLcode res = CURLE_FAILED_INIT;
#include "memdebug.h"
-static CURLcode test_lib1531(char *URL)
+static CURLcode test_lib1531(const char *URL)
{
static char const testData[] = ".abc\0xyz";
static curl_off_t const testDataSize = sizeof(testData) - 1;
/* Test CURLINFO_RESPONSE_CODE */
-static CURLcode test_lib1532(char *URL)
+static CURLcode test_lib1532(const char *URL)
{
CURL *curl;
long httpcode;
}
-static CURLcode test_lib1533(char *URL)
+static CURLcode test_lib1533(const char *URL)
{
struct cb_data data;
CURL *curl = NULL;
/* Test CURLINFO_FILETIME */
-static CURLcode test_lib1534(char *URL)
+static CURLcode test_lib1534(const char *URL)
{
CURL *curl, *dupe = NULL;
long filetime;
/* Test CURLINFO_PROTOCOL */
-static CURLcode test_lib1535(char *URL)
+static CURLcode test_lib1535(const char *URL)
{
CURL *curl, *dupe = NULL;
long protocol;
/* Test CURLINFO_SCHEME */
-static CURLcode test_lib1536(char *URL)
+static CURLcode test_lib1536(const char *URL)
{
CURL *curl, *dupe = NULL;
char *scheme;
#include "memdebug.h"
-static CURLcode test_lib1537(char *URL)
+static CURLcode test_lib1537(const char *URL)
{
const unsigned char a[] = {0x2f, 0x3a, 0x3b, 0x3c, 0x3d, 0x3e, 0x3f,
0x91, 0xa2, 0xb3, 0xc4, 0xd5, 0xe6, 0xf7};
#include "memdebug.h"
-static CURLcode test_lib1538(char *URL)
+static CURLcode test_lib1538(const char *URL)
{
CURLcode res = CURLE_OK;
CURLcode easyret;
return CURL_WRITEFUNC_PAUSE;
}
-static CURLcode test_lib1540(char *URL)
+static CURLcode test_lib1540(const char *URL)
{
CURL *curls = NULL;
CURLcode res = CURLE_OK;
return size * nmemb;
}
-static CURLcode test_lib1541(char *URL)
+static CURLcode test_lib1541(const char *URL)
{
CURL *curls = NULL;
CURLcode res = CURLE_OK;
#include "testtrace.h"
#include "memdebug.h"
-static CURLcode test_lib1542(char *URL)
+static CURLcode test_lib1542(const char *URL)
{
CURL *easy = NULL;
CURLcode res = CURLE_OK;
***************************************************************************/
#include "first.h"
-static CURLcode test_lib1545(char *URL)
+static CURLcode test_lib1545(const char *URL)
{
CURL *eh = NULL;
CURLcode res = CURLE_OK;
#include <curl/multi.h>
-static CURLcode test_lib1550(char *URL)
+static CURLcode test_lib1550(const char *URL)
{
CURLM *handle;
CURLcode res = CURLE_OK;
#include <curl/multi.h>
-static CURLcode test_lib1551(char *URL)
+static CURLcode test_lib1551(const char *URL)
{
CURL *curl;
CURLcode res = CURLE_OK;
#include "memdebug.h"
-static CURLcode test_lib1552(char *URL)
+static CURLcode test_lib1552(const char *URL)
{
CURL *curls = NULL;
CURLM *multi = NULL;
return 1; /* fail as fast as we can */
}
-static CURLcode test_lib1553(char *URL)
+static CURLcode test_lib1553(const char *URL)
{
CURL *curls = NULL;
CURLM *multi = NULL;
}
/* test function */
-static CURLcode test_lib1554(char *URL)
+static CURLcode test_lib1554(const char *URL)
{
CURLcode res = CURLE_OK;
CURLSH *share = NULL;
return 1;
}
-static CURLcode test_lib1555(char *URL)
+static CURLcode test_lib1555(const char *URL)
{
CURLcode res = CURLE_OK;
return nmemb * size;
}
-static CURLcode test_lib1556(char *URL)
+static CURLcode test_lib1556(const char *URL)
{
CURLcode code;
CURL *curl = NULL;
#include "memdebug.h"
-static CURLcode test_lib1557(char *URL)
+static CURLcode test_lib1557(const char *URL)
{
CURLM *curlm = NULL;
CURL *curl1 = NULL;
#include "memdebug.h"
-static CURLcode test_lib1558(char *URL)
+static CURLcode test_lib1558(const char *URL)
{
CURLcode res = CURLE_OK;
CURL *curl = NULL;
#include "memdebug.h"
-static CURLcode test_lib1559(char *URL)
+static CURLcode test_lib1559(const char *URL)
{
static const int EXCESSIVE = 10*1000*1000;
return 1;
}
-static CURLcode test_lib1560(char *URL)
+static CURLcode test_lib1560(const char *URL)
{
bool has_utf8 = !!getenv("CURL_TEST_HAVE_CODESET_UTF8");
#define WAKEUP_NUM 10
-static CURLcode test_lib1564(char *URL)
+static CURLcode test_lib1564(const char *URL)
{
CURLM *multi = NULL;
int numfds;
return NULL;
}
-static CURLcode test_lib1565(char *URL)
+static CURLcode test_lib1565(const char *URL)
{
int still_running;
int num;
}
#else /* without pthread, this test doesn't work */
-static CURLcode test_lib1565(char *URL)
+static CURLcode test_lib1565(const char *URL)
{
(void)URL;
return CURLE_OK;
#include <curl/multi.h>
-static CURLcode test_lib1567(char *URL)
+static CURLcode test_lib1567(const char *URL)
{
CURL *curl = NULL;
CURLcode res = CURLE_OK;
#include "memdebug.h"
-static CURLcode test_lib1568(char *URL)
+static CURLcode test_lib1568(const char *URL)
{
CURLcode ret;
CURL *hnd;
#include "memdebug.h"
-static CURLcode test_lib1569(char *URL)
+static CURLcode test_lib1569(const char *URL)
{
CURLcode res = CURLE_OK;
CURL *hnd;
#include "memdebug.h"
-static CURLcode test_lib1571(char *URL)
+static CURLcode test_lib1571(const char *URL)
{
CURLcode res;
CURL *curl;
return CURL_SEEKFUNC_OK;
}
-static CURLcode test_lib1576(char *URL)
+static CURLcode test_lib1576(const char *URL)
{
CURLcode res;
CURL *curl;
}
}
-static CURLcode test_lib1591(char *URL)
+static CURLcode test_lib1591(const char *URL)
{
CURL *curl = NULL;
CURLcode res = CURLE_FAILED_INIT;
#include "first.h"
-static CURLcode test_lib1592(char *URL)
+static CURLcode test_lib1592(const char *URL)
{
int stillRunning;
CURLM *multiHandle = NULL;
#include "memdebug.h"
-static CURLcode test_lib1593(char *URL)
+static CURLcode test_lib1593(const char *URL)
{
struct curl_slist *header = NULL;
long unmet;
#include "memdebug.h"
-static CURLcode test_lib1594(char *URL)
+static CURLcode test_lib1594(const char *URL)
{
struct curl_slist *header = NULL;
curl_off_t retry;
CURLcode *exp;
};
-static CURLcode test_lib1597(char *URL)
+static CURLcode test_lib1597(const char *URL)
{
CURL *curl = NULL;
CURLcode res = CURLE_OK;
}
}
-static CURLcode test_lib1598(char *URL)
+static CURLcode test_lib1598(const char *URL)
{
static const char *post_data = "xxx=yyy&aaa=bbbbb";
***************************************************************************/
#include "first.h"
-static CURLcode test_lib1599(char *URL)
+static CURLcode test_lib1599(const char *URL)
{
CURL *curl;
CURLcode res = CURLE_OK;
return 0; /* no more data left to deliver */
}
-static CURLcode test_lib1662(char *URL)
+static CURLcode test_lib1662(const char *URL)
{
CURLcode res = CURLE_OK;
CURL *hnd;
#include "memdebug.h"
-static CURLcode test_lib1900(char *URL)
+static CURLcode test_lib1900(const char *URL)
{
CURLcode res = CURLE_OK;
CURL *hnd = NULL;
return 0;
}
-static CURLcode test_lib1901(char *URL)
+static CURLcode test_lib1901(const char *URL)
{
CURL *curl;
CURLcode res = CURLE_OK;
#include "memdebug.h"
-static CURLcode test_lib1903(char *URL)
+static CURLcode test_lib1903(const char *URL)
{
CURLcode res = CURLE_OK;
CURL *ch = NULL;
#include "memdebug.h"
-static CURLcode test_lib1905(char *URL)
+static CURLcode test_lib1905(const char *URL)
{
CURLSH *sh = NULL;
CURL *ch = NULL;
#include "memdebug.h"
-static CURLcode test_lib1906(char *URL)
+static CURLcode test_lib1906(const char *URL)
{
CURLcode res = CURLE_OK;
char *url_after = NULL;
#include "memdebug.h"
-static CURLcode test_lib1907(char *URL)
+static CURLcode test_lib1907(const char *URL)
{
char *url_after;
CURL *curl;
#include "memdebug.h"
-static CURLcode test_lib1908(char *URL)
+static CURLcode test_lib1908(const char *URL)
{
CURLcode ret = CURLE_OK;
CURL *hnd;
#include "memdebug.h"
-static CURLcode test_lib1910(char *URL)
+static CURLcode test_lib1910(const char *URL)
{
CURLcode ret = CURLE_OK;
CURL *hnd;
define not publicly exposed so we set our own */
#define MAX_INPUT_LENGTH 8000000
-static CURLcode test_lib1911(char *URL)
+static CURLcode test_lib1911(const char *URL)
{
static char testbuf[MAX_INPUT_LENGTH + 2];
curl_mfprintf(stderr, "Type mismatch for CURLOPT_%s (expected %s)\n", \
name, exp)
-static CURLcode test_lib1912(char *URL)
+static CURLcode test_lib1912(const char *URL)
{
/* Only test if GCC typechecking is available */
int error = 0;
#include "memdebug.h"
-static CURLcode test_lib1913(char *URL)
+static CURLcode test_lib1913(const char *URL)
{
CURLcode ret = CURLE_OK;
CURL *hnd;
* Read/write HSTS cache entries via callback.
*/
-static CURLcode test_lib1915(char *URL)
+static CURLcode test_lib1915(const char *URL)
{
CURLcode res = CURLE_OK;
CURL *hnd;
#include "memdebug.h"
-static CURLcode test_lib1916(char *URL)
+static CURLcode test_lib1916(const char *URL)
{
CURL *curl;
CURLcode res = CURLE_OK;
#include "memdebug.h"
-static CURLcode test_lib1918(char *URL)
+static CURLcode test_lib1918(const char *URL)
{
const struct curl_easyoption *o;
(void)URL;
#include "memdebug.h"
-static CURLcode test_lib1919(char *URL)
+static CURLcode test_lib1919(const char *URL)
{
CURLcode res = CURLE_OK;
CURL *curl;
#include "memdebug.h"
-static CURLcode test_lib1933(char *URL)
+static CURLcode test_lib1933(const char *URL)
{
CURL *curl;
CURLcode res = TEST_ERR_MAJOR_BAD;
#include "memdebug.h"
-static CURLcode test_lib1934(char *URL)
+static CURLcode test_lib1934(const char *URL)
{
CURL *curl;
CURLcode res = TEST_ERR_MAJOR_BAD;
#include "memdebug.h"
-static CURLcode test_lib1935(char *URL)
+static CURLcode test_lib1935(const char *URL)
{
CURL *curl;
CURLcode res = TEST_ERR_MAJOR_BAD;
#include "memdebug.h"
-static CURLcode test_lib1936(char *URL)
+static CURLcode test_lib1936(const char *URL)
{
CURL *curl;
CURLcode res = TEST_ERR_MAJOR_BAD;
#include "memdebug.h"
-static CURLcode test_lib1937(char *URL)
+static CURLcode test_lib1937(const char *URL)
{
CURL *curl;
CURLcode res = TEST_ERR_MAJOR_BAD;
#include "memdebug.h"
-static CURLcode test_lib1938(char *URL)
+static CURLcode test_lib1938(const char *URL)
{
CURL *curl;
CURLcode res = TEST_ERR_MAJOR_BAD;
#include "memdebug.h"
-static CURLcode test_lib1939(char *URL)
+static CURLcode test_lib1939(const char *URL)
{
CURLM *multi;
CURL *easy;
}
}
-static CURLcode test_lib1940(char *URL)
+static CURLcode test_lib1940(const char *URL)
{
CURL *easy = NULL;
CURLcode res = CURLE_OK;
return n*l;
}
-static CURLcode test_lib1945(char *URL)
+static CURLcode test_lib1945(const char *URL)
{
CURL *easy;
CURLcode res = CURLE_OK;
return n*l;
}
-static CURLcode test_lib1947(char *URL)
+static CURLcode test_lib1947(const char *URL)
{
CURL *curl;
CURLcode res = CURLE_OK;
return tocopy;
}
-static CURLcode test_lib1948(char *URL)
+static CURLcode test_lib1948(const char *URL)
{
CURL *curl;
CURLcode res = CURLE_OK;
#include "memdebug.h"
-static CURLcode test_lib1955(char *URL)
+static CURLcode test_lib1955(const char *URL)
{
CURL *curl;
CURLcode res = TEST_ERR_MAJOR_BAD;
#include "memdebug.h"
-static CURLcode test_lib1956(char *URL)
+static CURLcode test_lib1956(const char *URL)
{
CURL *curl;
CURLcode res = TEST_ERR_MAJOR_BAD;
#include "memdebug.h"
-static CURLcode test_lib1957(char *URL)
+static CURLcode test_lib1957(const char *URL)
{
CURL *curl;
CURLcode res = TEST_ERR_MAJOR_BAD;
#include "memdebug.h"
-static CURLcode test_lib1958(char *URL)
+static CURLcode test_lib1958(const char *URL)
{
CURL *curl;
CURLcode res = TEST_ERR_MAJOR_BAD;
#include "memdebug.h"
-static CURLcode test_lib1959(char *URL)
+static CURLcode test_lib1959(const char *URL)
{
CURL *curl;
CURLcode res = TEST_ERR_MAJOR_BAD;
/* Expected args: URL IP PORT */
-static CURLcode test_lib1960(char *URL)
+static CURLcode test_lib1960(const char *URL)
{
CURL *curl = NULL;
CURLcode res = TEST_ERR_MAJOR_BAD;
return res;
}
#else
-static CURLcode test_lib1960(char *URL)
+static CURLcode test_lib1960(const char *URL)
{
(void)URL;
curl_mprintf("lacks inet_pton\n");
#include "memdebug.h"
-static CURLcode test_lib1964(char *URL)
+static CURLcode test_lib1964(const char *URL)
{
CURL *curl;
CURLcode res = CURLE_OK;
#include "memdebug.h"
-static CURLcode test_lib1970(char *URL)
+static CURLcode test_lib1970(const char *URL)
{
CURL *curl;
CURLcode res = TEST_ERR_MAJOR_BAD;
return 0;
}
-static CURLcode test_lib1971(char *URL)
+static CURLcode test_lib1971(const char *URL)
{
CURL *curl;
CURLcode res = TEST_ERR_MAJOR_BAD;
#include "memdebug.h"
-static CURLcode test_lib1972(char *URL)
+static CURLcode test_lib1972(const char *URL)
{
CURL *curl;
curl_mime *mime = NULL;
#include "memdebug.h"
-static CURLcode test_lib1973(char *URL)
+static CURLcode test_lib1973(const char *URL)
{
CURL *curl;
CURLcode res = TEST_ERR_MAJOR_BAD;
#include "memdebug.h"
-static CURLcode test_lib1974(char *URL)
+static CURLcode test_lib1974(const char *URL)
{
CURL *curl;
CURLcode res = TEST_ERR_MAJOR_BAD;
return 0;
}
-static CURLcode test_lib1975(char *URL)
+static CURLcode test_lib1975(const char *URL)
{
CURL *curl;
CURLcode res = TEST_ERR_MAJOR_BAD;
#include "memdebug.h"
-static CURLcode test_lib1977(char *URL)
+static CURLcode test_lib1977(const char *URL)
{
CURLcode res = CURLE_OK;
CURLU *curlu = curl_url();
#include "memdebug.h"
-static CURLcode test_lib1978(char *URL)
+static CURLcode test_lib1978(const char *URL)
{
CURL *curl;
CURLcode res = TEST_ERR_MAJOR_BAD;
return CURLAUTH_NONE;
}
-static CURLcode test_lib2023(char *URL) /* libauthretry */
+static CURLcode test_lib2023(const char *URL) /* libauthretry */
{
CURLcode res;
CURL *curl = NULL;
return size * nmemb;
}
-static CURLcode test_lib2032(char *URL) /* libntlmconnect */
+static CURLcode test_lib2032(const char *URL) /* libntlmconnect */
{
enum HandleState {
ReadyForNewHandle,
return prereq_cb->prereq_retcode;
}
-static CURLcode test_lib2082(char *URL) /* libprereq */
+static CURLcode test_lib2082(const char *URL) /* libprereq */
{
struct prcs prereq_cb;
CURLcode ret = CURLE_OK;
}
#endif
-static CURLcode test_lib2301(char *URL)
+static CURLcode test_lib2301(const char *URL)
{
#ifndef CURL_DISABLE_WEBSOCKETS
CURL *curl;
}
#endif
-static CURLcode test_lib2302(char *URL)
+static CURLcode test_lib2302(const char *URL)
{
#ifndef CURL_DISABLE_WEBSOCKETS
CURL *curl;
}
#endif
-static CURLcode test_lib2304(char *URL)
+static CURLcode test_lib2304(const char *URL)
{
#ifndef CURL_DISABLE_WEBSOCKETS
CURL *curl;
***************************************************************************/
#include "first.h"
-static CURLcode test_lib2306(char *URL)
+static CURLcode test_lib2306(const char *URL)
{
/* first a fine GET response, then a bad one */
CURL *cl;
return CURL_WRITEFUNC_ERROR;
}
-static CURLcode test_lib2308(char *URL)
+static CURLcode test_lib2308(const char *URL)
{
CURL *curl;
CURLcode res = CURLE_OK;
return CURL_WRITEFUNC_ERROR;
}
-static CURLcode test_lib2309(char *URL)
+static CURLcode test_lib2309(const char *URL)
{
CURL *curl;
CURL *curldupe;
#include "memdebug.h"
-static CURLcode test_lib2402(char *URL)
+static CURLcode test_lib2402(const char *URL)
{
CURLcode res = CURLE_OK;
CURL *curl[NUM_HANDLES] = {0};
char target_url[256];
char dnsentry[256];
struct curl_slist *slist = NULL;
- char *port = libtest_arg3;
- char *address = libtest_arg2;
+ const char *port = libtest_arg3;
+ const char *address = libtest_arg2;
(void)URL;
#include "memdebug.h"
-static CURLcode test_lib2404(char *URL)
+static CURLcode test_lib2404(const char *URL)
{
CURLcode res = CURLE_OK;
CURL *curl[NUM_HANDLES] = {0};
char target_url[256];
char dnsentry[256];
struct curl_slist *slist = NULL;
- char *port = libtest_arg3;
- char *address = libtest_arg2;
+ const char *port = libtest_arg3;
+ const char *address = libtest_arg2;
(void)URL;
return size * nmemb;
}
-static CURLcode set_easy(char *URL, CURL *easy, long option)
+static CURLcode set_easy(const char *URL, CURL *easy, long option)
{
CURLcode res = CURLE_OK;
return res;
}
-static CURLcode test_run(char *URL, long option, unsigned int *max_fd_count)
+static CURLcode test_run(const char *URL, long option,
+ unsigned int *max_fd_count)
{
CURLMcode mc = CURLM_OK;
CURLM *multi = NULL;
return res;
}
-static CURLcode test_lib2405(char *URL)
+static CURLcode test_lib2405(const char *URL)
{
CURLcode res = CURLE_OK;
unsigned int fd_count = 0;
#include "testtrace.h"
#include "memdebug.h"
-static CURLcode test_lib2502(char *URL)
+static CURLcode test_lib2502(const char *URL)
{
CURLcode res = CURLE_OK;
CURL *curl[NUM_HANDLES] = {0};
char target_url[256];
char dnsentry[256];
struct curl_slist *slist = NULL;
- char *port = libtest_arg3;
- char *address = libtest_arg2;
+ const char *port = libtest_arg3;
+ const char *address = libtest_arg2;
(void)URL;
}
#endif
-static CURLcode test_lib2700(char *URL)
+static CURLcode test_lib2700(const char *URL)
{
#ifndef CURL_DISABLE_WEBSOCKETS
CURLcode res = CURLE_OK;
#include "memdebug.h"
-static CURLcode test_lib3010(char *URL)
+static CURLcode test_lib3010(const char *URL)
{
CURLcode ret = CURLE_OK;
CURL *curl = NULL;
#include "memdebug.h"
-static CURLcode test_lib3025(char *URL)
+static CURLcode test_lib3025(const char *URL)
{
CURLcode res;
CURL *curl;
return 0;
}
-static CURLcode test_lib3026(char *URL)
+static CURLcode test_lib3026(const char *URL)
{
#if defined(CURL_WINDOWS_UWP) || defined(UNDER_CE)
typedef HANDLE curl_win_thread_handle_t;
return NULL;
}
-static CURLcode test_lib3026(char *URL)
+static CURLcode test_lib3026(const char *URL)
{
CURLcode results[NUM_THREADS];
pthread_t tids[NUM_THREADS];
}
#else /* without pthread or Windows, this test doesn't work */
-static CURLcode test_lib3026(char *URL)
+static CURLcode test_lib3026(const char *URL)
{
curl_version_info_data *ver;
(void)URL;
#include "memdebug.h"
-static CURLcode test_lib3027(char *URL)
+static CURLcode test_lib3027(const char *URL)
{
CURLcode ret = CURLE_OK;
CURL *hnd;
* SPDX-License-Identifier: curl
*
***************************************************************************/
+#include "first.h"
+
#include "testtrace.h"
-#include "testutil.h"
-#include "memdebug.h"
+#include "memdebug.h"
static CURLcode t3033_req_test(CURLM *multi, CURL *easy,
- char *url_3033, int index)
+ const char *URL, int index)
{
CURLMsg *msg = NULL;
CURLcode res = CURLE_OK;
}
curl_easy_reset(easy);
- curl_easy_setopt(easy, CURLOPT_URL, url_3033);
+ curl_easy_setopt(easy, CURLOPT_URL, URL);
easy_setopt(easy, CURLOPT_DEBUGDATA, &libtest_debug_config);
easy_setopt(easy, CURLOPT_DEBUGFUNCTION, libtest_debug_cb);
easy_setopt(easy, CURLOPT_VERBOSE, 1L);
return res;
}
-static CURLcode test_lib3033(char *URL)
+static CURLcode test_lib3033(const char *URL)
{
CURL *curl = NULL;
CURLM *multi = NULL;
#include "memdebug.h"
-static CURLcode test_lib3100(char *URL)
+static CURLcode test_lib3100(const char *URL)
{
CURLcode res;
CURL *curl;
#include "memdebug.h"
-static CURLcode test_lib3101(char *URL)
+static CURLcode test_lib3101(const char *URL)
{
CURLcode res;
CURL *curl;
return size * nmemb;
}
-static CURLcode test_lib3102(char *URL)
+static CURLcode test_lib3102(const char *URL)
{
CURL *curl;
CURLcode res = CURLE_OK;
#include "memdebug.h"
-static CURLcode test_lib3103(char *URL)
+static CURLcode test_lib3103(const char *URL)
{
CURLcode res = CURLE_OK;
CURLSH *share;
#include "memdebug.h"
-static CURLcode test_lib3104(char *URL)
+static CURLcode test_lib3104(const char *URL)
{
CURLcode res = CURLE_OK;
CURLSH *share;
#include "memdebug.h"
-static CURLcode test_lib3105(char *URL)
+static CURLcode test_lib3105(const char *URL)
{
CURL *curls = NULL;
CURLM *multi = NULL;
#endif
-static CURLcode test_lib3207(char *URL)
+static CURLcode test_lib3207(const char *URL)
{
CURLcode res = CURLE_OK;
size_t i;
#include "memdebug.h"
-static CURLcode test_lib3208(char *URL)
+static CURLcode test_lib3208(const char *URL)
{
CURL *curl = NULL;
CURLM *multi = NULL;
testcounter = 0;
}
-static CURLcode test_lib500(char *URL)
+static CURLcode test_lib500(const char *URL)
{
CURLcode res;
CURL *curl;
#include "memdebug.h"
-static CURLcode test_lib501(char *URL)
+static CURLcode test_lib501(const char *URL)
{
CURLcode res;
CURL *curl;
* Get a single URL without select().
*/
-static CURLcode test_lib502(char *URL)
+static CURLcode test_lib502(const char *URL)
{
CURL *c = NULL;
CURLM *m = NULL;
* auth info.
*/
-static CURLcode test_lib503(char *URL)
+static CURLcode test_lib503(const char *URL)
{
CURL *c = NULL;
CURLM *m = NULL;
* Use multi interface to get document over proxy with bad port number.
* This caused the interface to "hang" in libcurl 7.10.2.
*/
-static CURLcode test_lib504(char *URL)
+static CURLcode test_lib504(const char *URL)
{
CURL *c = NULL;
CURLcode res = CURLE_OK;
* Example based on source code provided by Erick Nuwendam. Thanks!
*/
-static CURLcode test_lib505(char *URL)
+static CURLcode test_lib505(const char *URL)
{
CURL *curl;
CURLcode res = CURLE_OK;
}
/* test function */
-static CURLcode test_lib506(char *URL)
+static CURLcode test_lib506(const char *URL)
{
CURLcode res;
CURLSHcode scode = CURLSHE_OK;
#include "memdebug.h"
-static CURLcode test_lib507(char *URL)
+static CURLcode test_lib507(const char *URL)
{
CURL *curls = NULL;
CURLM *multi = NULL;
return 0; /* no more data left to deliver */
}
-static CURLcode test_lib508(char *URL)
+static CURLcode test_lib508(const char *URL)
{
static const char testdata[] =
"this is what we post to the silly web server\n";
}
-static CURLcode test_lib509(char *URL)
+static CURLcode test_lib509(const char *URL)
{
static const unsigned char a[] = {0x2f, 0x3a, 0x3b, 0x3c, 0x3d, 0x3e, 0x3f,
0x91, 0xa2, 0xb3, 0xc4, 0xd5, 0xe6, 0xf7};
return 0; /* no more data left to deliver */
}
-static CURLcode test_lib510(char *URL)
+static CURLcode test_lib510(const char *URL)
{
CURL *curl;
CURLcode res = CURLE_OK;
#include "memdebug.h"
-static CURLcode test_lib511(char *URL)
+static CURLcode test_lib511(const char *URL)
{
CURLcode res;
CURL *curl;
/* Test case code based on source in a bug report filed by James Bursa on
28 Apr 2004 */
-static CURLcode test_lib512(char *URL)
+static CURLcode test_lib512(const char *URL)
{
CURLcode code;
int rc = 99;
return CURL_READFUNC_ABORT;
}
-static CURLcode test_lib513(char *URL)
+static CURLcode test_lib513(const char *URL)
{
CURL *curl;
CURLcode res = CURLE_OK;
#include "memdebug.h"
-static CURLcode test_lib514(char *URL)
+static CURLcode test_lib514(const char *URL)
{
CURL *curl;
CURLcode res = CURLE_OK;
#include "memdebug.h"
-static CURLcode test_lib515(char *URL)
+static CURLcode test_lib515(const char *URL)
{
CURL *curl;
CURLcode res = CURLE_OK;
#include "memdebug.h"
-static CURLcode test_lib516(char *URL)
+static CURLcode test_lib516(const char *URL)
{
CURL *curl;
CURLcode res = CURLE_OK;
#include "memdebug.h"
-static CURLcode test_lib517(char *URL)
+static CURLcode test_lib517(const char *URL)
{
struct dcheck {
const char *input;
return 0;
}
-static CURLcode test_lib518(char *URL)
+static CURLcode test_lib518(const char *URL)
{
CURLcode res;
CURL *curl;
#else /* HAVE_GETRLIMIT && HAVE_SETRLIMIT */
-static CURLcode test_lib518(char *URL)
+static CURLcode test_lib518(const char *URL)
{
(void)URL;
curl_mprintf("system lacks necessary system function(s)");
#include "memdebug.h"
-static CURLcode test_lib519(char *URL)
+static CURLcode test_lib519(const char *URL)
{
CURLcode res;
CURL *curl;
#include "memdebug.h"
-static CURLcode test_lib520(char *URL)
+static CURLcode test_lib520(const char *URL)
{
CURLcode res;
CURL *curl;
#include "memdebug.h"
-static CURLcode test_lib521(char *URL)
+static CURLcode test_lib521(const char *URL)
{
CURLcode res;
CURL *curl;
#include "memdebug.h"
-static CURLcode test_lib523(char *URL)
+static CURLcode test_lib523(const char *URL)
{
CURLcode res;
CURL *curl;
#include "memdebug.h"
-static CURLcode test_lib524(char *URL)
+static CURLcode test_lib524(const char *URL)
{
CURLcode res;
CURL *curl;
#include "memdebug.h"
-static CURLcode test_lib525(char *URL)
+static CURLcode test_lib525(const char *URL)
{
CURLcode res = CURLE_OK;
CURL *curl = NULL;
#include "memdebug.h"
-static CURLcode test_lib526(char *URL)
+static CURLcode test_lib526(const char *URL)
{
CURLcode res = CURLE_OK;
CURL *curl[NUM_HANDLES];
return result;
}
-static CURLcode testone(char *URL, int timer_fail_at, int socket_fail_at)
+static CURLcode testone(const char *URL, int timer_fail_at, int socket_fail_at)
{
CURLcode res = CURLE_OK;
CURL *curl = NULL; CURLM *m = NULL;
return res;
}
-static CURLcode test_lib530(char *URL)
+static CURLcode test_lib530(const char *URL)
{
CURLcode rc;
/* rerun the same transfer multiple times and make it fail in different
#include "memdebug.h"
-static CURLcode test_lib533(char *URL)
+static CURLcode test_lib533(const char *URL)
{
CURLcode res = CURLE_OK;
CURL *curl = NULL;
}
}
-static CURLcode test_lib536(char *URL)
+static CURLcode test_lib536(const char *URL)
{
CURLcode res = CURLE_OK;
CURL *curl;
return 0;
}
-static CURLcode test_lib537(char *URL)
+static CURLcode test_lib537(const char *URL)
{
CURLcode res;
CURL *curl;
#else /* HAVE_GETRLIMIT && HAVE_SETRLIMIT */
-static CURLcode test_lib537(char *URL)
+static CURLcode test_lib537(const char *URL)
{
(void)URL;
curl_mprintf("system lacks necessary system function(s)");
#include "memdebug.h"
-static CURLcode test_lib539(char *URL)
+static CURLcode test_lib539(const char *URL)
{
CURLcode res;
CURL *curl;
return CURLE_OK;
}
-static CURLcode test_lib540(char *URL)
+static CURLcode test_lib540(const char *URL)
{
CURLM *cm = NULL;
struct curl_slist *headers = NULL;
* Two FTP uploads, the second with no content sent.
*/
-static CURLcode test_lib541(char *URL)
+static CURLcode test_lib541(const char *URL)
{
CURL *curl;
CURLcode res = CURLE_OK;
* FTP get with NOBODY but no HEADER
*/
-static CURLcode test_lib542(char *URL)
+static CURLcode test_lib542(const char *URL)
{
CURL *curl;
CURLcode res = CURLE_OK;
#include "memdebug.h"
-static CURLcode test_lib543(char *URL)
+static CURLcode test_lib543(const char *URL)
{
static const unsigned char a[] = {
0x9c, 0x26, 0x4b, 0x3d, 0x49, 0x4, 0xa1, 0x1,
#include "memdebug.h"
-static CURLcode test_lib544(char *URL)
+static CURLcode test_lib544(const char *URL)
{
CURL *curl;
CURLcode res = CURLE_OK;
return CURLIOE_OK;
}
-static CURLcode test_lib547(char *URL)
+static CURLcode test_lib547(const char *URL)
{
CURLcode res;
CURL *curl;
#include "memdebug.h"
-static CURLcode test_lib549(char *URL)
+static CURLcode test_lib549(const char *URL)
{
CURLcode res;
CURL *curl;
return CURLIOE_UNKNOWNCMD;
}
-static CURLcode test_lib552(char *URL)
+static CURLcode test_lib552(const char *URL)
{
CURL *curl;
CURLcode res = CURLE_OK;
#define NUM_HEADERS 8
#define SIZE_HEADERS 5000
-static CURLcode test_lib553(char *URL)
+static CURLcode test_lib553(const char *URL)
{
static char testbuf[SIZE_HEADERS + 100];
return CURL_READFUNC_ABORT;
}
-static CURLcode t554_test_once(char *URL, bool oldstyle)
+static CURLcode t554_test_once(const char *URL, bool oldstyle)
{
static const char testdata[] =
"this is what we post to the silly web server\n";
return res;
}
-static CURLcode test_lib554(char *URL)
+static CURLcode test_lib554(const char *URL)
{
CURLcode res;
return CURLIOE_OK;
}
-static CURLcode test_lib555(char *URL)
+static CURLcode test_lib555(const char *URL)
{
CURLcode res = CURLE_OK;
CURL *curl = NULL;
#include "memdebug.h"
-static CURLcode test_lib556(char *URL)
+static CURLcode test_lib556(const char *URL)
{
CURLcode res;
CURL *curl;
return 0;
}
-static CURLcode test_lib557(char *URL)
+static CURLcode test_lib557(const char *URL)
{
int errors = 0;
(void)URL; /* not used */
#include "memdebug.h"
-static CURLcode test_lib558(char *URL)
+static CURLcode test_lib558(const char *URL)
{
unsigned char a[] = {0x2f, 0x3a, 0x3b, 0x3c, 0x3d, 0x3e, 0x3f,
0x91, 0xa2, 0xb3, 0xc4, 0xd5, 0xe6, 0xf7};
#include "memdebug.h"
-static CURLcode test_lib559(char *URL)
+static CURLcode test_lib559(const char *URL)
{
CURLcode res;
CURL *curl;
* fast/different compared to the real/distant servers we saw the bug happen
* with.
*/
-static CURLcode test_lib560(char *URL)
+static CURLcode test_lib560(const char *URL)
{
CURL *http_handle = NULL;
CURLM *multi_handle = NULL;
*/
-static CURLcode test_lib562(char *URL)
+static CURLcode test_lib562(const char *URL)
{
CURL *curl;
CURLcode res = CURLE_OK;
#include "memdebug.h"
-static CURLcode test_lib564(char *URL)
+static CURLcode test_lib564(const char *URL)
{
CURLcode res = CURLE_OK;
CURL *curl = NULL;
#include "memdebug.h"
-static CURLcode test_lib566(char *URL)
+static CURLcode test_lib566(const char *URL)
{
CURLcode res;
CURL *curl;
/*
* Test a simple OPTIONS request with a custom header
*/
-static CURLcode test_lib567(char *URL)
+static CURLcode test_lib567(const char *URL)
{
CURLcode res;
CURL *curl;
/*
* Test the Client->Server ANNOUNCE functionality (PUT style)
*/
-static CURLcode test_lib568(char *URL)
+static CURLcode test_lib568(const char *URL)
{
CURLcode res;
CURL *curl;
/*
* Test Session ID capture
*/
-static CURLcode test_lib569(char *URL)
+static CURLcode test_lib569(const char *URL)
{
CURLcode res;
CURL *curl;
#include "testutil.h"
#include "memdebug.h"
-static CURLcode test_lib570(char *URL)
+static CURLcode test_lib570(const char *URL)
{
CURLcode res;
CURL *curl;
return size * nmemb;
}
-static CURLcode test_lib571(char *URL)
+static CURLcode test_lib571(const char *URL)
{
CURLcode res;
CURL *curl;
/*
* Test GET_PARAMETER: PUT, HEARTBEAT, and POST
*/
-static CURLcode test_lib572(char *URL)
+static CURLcode test_lib572(const char *URL)
{
CURLcode res;
CURL *curl;
* Get a single URL without select().
*/
-static CURLcode test_lib573(char *URL)
+static CURLcode test_lib573(const char *URL)
{
CURL *c = NULL;
CURLM *m = NULL;
return CURL_FNMATCHFUNC_MATCH;
}
-static CURLcode test_lib574(char *URL)
+static CURLcode test_lib574(const char *URL)
{
CURLcode res;
CURL *curl;
* 3. with multi interface
*/
-static CURLcode test_lib575(char *URL)
+static CURLcode test_lib575(const char *URL)
{
CURL *handle = NULL;
CURL *duphandle = NULL;
return CURL_CHUNK_END_FUNC_OK;
}
-static CURLcode test_lib576(char *URL)
+static CURLcode test_lib576(const char *URL)
{
CURL *handle = NULL;
CURLcode res = CURLE_OK;
return 0;
}
-static CURLcode test_lib578(char *URL)
+static CURLcode test_lib578(const char *URL)
{
CURL *curl;
CURLcode res = CURLE_OK;
return 0; /* no more data left to deliver */
}
-static CURLcode test_lib579(char *URL)
+static CURLcode test_lib579(const char *URL)
{
CURL *curl;
CURLcode res = CURLE_OK;
}
}
-static CURLcode test_lib582(char *URL)
+static CURLcode test_lib582(const char *URL)
{
CURLcode res = CURLE_OK;
CURL *curl = NULL;
#include "memdebug.h"
-static CURLcode test_lib583(char *URL)
+static CURLcode test_lib583(const char *URL)
{
int stillRunning;
CURLM *multiHandle = NULL;
/* struct containing data of a thread */
struct t586_Tdata {
CURLSH *share;
- char *url;
+ const char *url;
};
struct t586_userdata {
}
/* test function */
-static CURLcode test_lib586(char *URL)
+static CURLcode test_lib586(const char *URL)
{
CURLcode res = CURLE_OK;
CURLSHcode scode = CURLSHE_OK;
- char *url;
struct t586_Tdata tdata;
CURL *curl;
CURLSH *share;
return TEST_ERR_MAJOR_BAD;
}
- url = URL;
- test_setopt(curl, CURLOPT_URL, url);
+ test_setopt(curl, CURLOPT_URL, URL);
curl_mprintf("CURLOPT_SHARE\n");
test_setopt(curl, CURLOPT_SHARE, share);
#include "memdebug.h"
-static CURLcode test_lib589(char *URL)
+static CURLcode test_lib589(const char *URL)
{
CURL *curl;
CURLcode res = CURLE_OK;
#include "memdebug.h"
-static CURLcode test_lib590(char *URL)
+static CURLcode test_lib590(const char *URL)
{
CURLcode res;
CURL *curl;
#include "memdebug.h"
-static CURLcode test_lib591(char *URL)
+static CURLcode test_lib591(const char *URL)
{
CURL *easy = NULL;
CURLM *multi = NULL;
* with function curl_multi_info_read().
*/
-static CURLcode test_lib597(char *URL)
+static CURLcode test_lib597(const char *URL)
{
CURL *easy = NULL;
CURLM *multi = NULL;
#include "memdebug.h"
-static CURLcode test_lib598(char *URL)
+static CURLcode test_lib598(const char *URL)
{
CURLcode res;
CURL *curl;
return 0;
}
-static CURLcode test_lib599(char *URL)
+static CURLcode test_lib599(const char *URL)
{
CURL *curl;
CURLcode res = CURLE_OK;
return 0; /* no more data left to deliver */
}
-static CURLcode t643_test_once(char *URL, bool oldstyle)
+static CURLcode t643_test_once(const char *URL, bool oldstyle)
{
static const char testdata[] = "dummy\n";
return CURLE_OK;
}
-static CURLcode test_lib643(char *URL)
+static CURLcode test_lib643(const char *URL)
{
CURLcode res;
return len;
}
-static CURLcode test_lib650(char *URL)
+static CURLcode test_lib650(const char *URL)
{
CURL *curl = NULL;
CURLcode res = TEST_ERR_MAJOR_BAD;
#include "memdebug.h"
-static CURLcode test_lib651(char *URL)
+static CURLcode test_lib651(const char *URL)
{
static char testbuf[17000]; /* more than 16K */
#include "memdebug.h"
-static CURLcode test_lib652(char *URL)
+static CURLcode test_lib652(const char *URL)
{
static char testbuf[17000]; /* more than 16K */
#include "memdebug.h"
-static CURLcode test_lib653(char *URL)
+static CURLcode test_lib653(const char *URL)
{
CURL *curls = NULL;
CURLcode res = CURLE_OK;
return 0; /* no more data left to deliver */
}
-static CURLcode test_lib654(char *URL)
+static CURLcode test_lib654(const char *URL)
{
static const char testdata[] = "dummy\n";
return 0;
}
-static CURLcode test_lib655(char *URL)
+static CURLcode test_lib655(const char *URL)
{
CURL *curl;
CURLcode res = CURLE_OK;
* Get a single URL without select().
*/
-static CURLcode test_lib658(char *URL)
+static CURLcode test_lib658(const char *URL)
{
CURL *handle = NULL;
CURLcode res = CURLE_OK;
* Get a single URL without select().
*/
-static CURLcode test_lib659(char *URL)
+static CURLcode test_lib659(const char *URL)
{
CURL *handle = NULL;
CURLcode res = CURLE_OK;
#include "memdebug.h"
-static CURLcode test_lib661(char *URL)
+static CURLcode test_lib661(const char *URL)
{
CURLcode res;
CURL *curl = NULL;
#include "memdebug.h"
-static CURLcode test_lib666(char *URL)
+static CURLcode test_lib666(const char *URL)
{
static char testbuf[17000]; /* more than 16K */
return 0; /* no more data left to deliver */
}
-static CURLcode test_lib667(char *URL)
+static CURLcode test_lib667(const char *URL)
{
static const char testdata[] = "dummy";
return len;
}
-static CURLcode test_lib668(char *URL)
+static CURLcode test_lib668(const char *URL)
{
static const char testdata[] = "dummy";
return 0;
}
-static CURLcode test_lib670(char *URL)
+static CURLcode test_lib670(const char *URL)
{
static const char testname[] = "field";
* Get a single URL without select().
*/
-static CURLcode test_lib674(char *URL)
+static CURLcode test_lib674(const char *URL)
{
CURL *handle = NULL;
CURL *handle2;
#include "memdebug.h"
-static CURLcode test_lib676(char *URL)
+static CURLcode test_lib676(const char *URL)
{
CURLcode res;
CURL *curl;
#include "memdebug.h"
-static CURLcode test_lib677(char *URL)
+static CURLcode test_lib677(const char *URL)
{
static const char testcmd[] = "A1 IDLE\r\n";
static char testbuf[1024];
return code;
}
-static CURLcode test_lib678(char *URL)
+static CURLcode test_lib678(const char *URL)
{
CURLcode res = CURLE_OK;
curl_global_init(CURL_GLOBAL_DEFAULT);
#include "memdebug.h"
-static CURLcode test_lib694(char *URL)
+static CURLcode test_lib694(const char *URL)
{
CURLcode res;
CURL *curl;
return size * nmemb;
}
-static CURLcode test_lib695(char *URL)
+static CURLcode test_lib695(const char *URL)
{
CURL *curl = NULL;
curl_mime *mime1 = NULL;
* Get a single URL without select().
*/
-static CURLcode test_lib751(char *URL)
+static CURLcode test_lib751(const char *URL)
{
CURL *easies[1000];
CURLM *m;
return len;
}
-static bool t753_setup(char *URL, const char *name,
+static bool t753_setup(const char *URL, const char *name,
CURL **peasy,
struct t753_transfer_status *st)
{
return FALSE;
}
-static CURLcode test_lib753(char *URL)
+static CURLcode test_lib753(const char *URL)
{
CURL *easy1 = NULL, *easy2 = NULL;
CURLM *multi = NULL;
non-existing function return code back */
#define present(x) ((x != CURLE_NOT_BUILT_IN) && (x != CURLE_UNKNOWN_OPTION))
-static CURLcode test_lib1521(char *URL)
+static CURLcode test_lib1521(const char *URL)
{
CURL *curl = NULL;
CURL *dep = NULL;
#include "memdebug.h" /* LAST include file */
-static CURLcode test_tool1394(char *arg)
+static CURLcode test_tool1394(const char *arg)
{
UNITTEST_BEGIN_SIMPLE
}
#endif
-static CURLcode test_tool1604(char *arg)
+static CURLcode test_tool1604(const char *arg)
{
UNITTEST_BEGIN_SIMPLE
#include "memdebug.h" /* LAST include file */
-static CURLcode test_tool1621(char *arg)
+static CURLcode test_tool1621(const char *arg)
{
UNITTEST_BEGIN_SIMPLE
#include "a libcurl header.h" /* from the lib dir */
- static CURLcode test_unit9998(char *arg)
+ static CURLcode test_unit9998(const char *arg)
{
UNITTEST_BEGIN_SIMPLE
/* done before shutting down and exiting */
}
- static CURLcode test_unit9999(char *arg)
+ static CURLcode test_unit9999(const char *arg)
{
UNITTEST_BEGIN(t9999_setup())
(void)value;
}
-static CURLcode test_unit1300(char *arg)
+static CURLcode test_unit1300(const char *arg)
{
UNITTEST_BEGIN_SIMPLE
size_t olen;
};
-static CURLcode test_unit1302(char *arg)
+static CURLcode test_unit1302(const char *arg)
{
UNITTEST_BEGIN_SIMPLE
CURLcode rc;
* N various values of now
*/
-static CURLcode test_unit1303(char *arg)
+static CURLcode test_unit1303(const char *arg)
{
struct Curl_easy *easy;
Curl_safefree(*login);
}
-static CURLcode test_unit1304(char *arg)
+static CURLcode test_unit1304(const char *arg)
{
char *login = NULL;
char *password = NULL;
#else
-static CURLcode test_unit1304(char *arg)
+static CURLcode test_unit1304(const char *arg)
{
UNITTEST_BEGIN_SIMPLE
UNITTEST_END_SIMPLE
return CURLE_OK;
}
-static CURLcode test_unit1305(char *arg)
+static CURLcode test_unit1305(const char *arg)
{
UNITTEST_BEGIN(t1305_setup())
/* not reached */
}
-static CURLcode test_unit1307(char *arg)
+static CURLcode test_unit1307(const char *arg)
{
UNITTEST_BEGIN_SIMPLE
#else
-static CURLcode test_unit1307(char *arg)
+static CURLcode test_unit1307(const char *arg)
{
UNITTEST_BEGIN_SIMPLE
UNITTEST_END_SIMPLE
splayprint(t->smaller, d + 1, output);
}
-static CURLcode test_unit1309(char *arg)
+static CURLcode test_unit1309(const char *arg)
{
UNITTEST_BEGIN_SIMPLE
***************************************************************************/
#include "unitcheck.h"
-static CURLcode test_unit1323(char *arg)
+static CURLcode test_unit1323(const char *arg)
{
UNITTEST_BEGIN_SIMPLE
#include "memdebug.h"
-static CURLcode test_unit1330(char *arg)
+static CURLcode test_unit1330(const char *arg)
{
UNITTEST_BEGIN_SIMPLE
#include "memdebug.h"
#include "unitprotos.h"
-static CURLcode test_unit1395(char *arg)
+static CURLcode test_unit1395(const char *arg)
{
UNITTEST_BEGIN_SIMPLE
curl_global_cleanup();
}
-static CURLcode test_unit1396(char *arg)
+static CURLcode test_unit1396(const char *arg)
{
CURL *easy;
#include "vtls/hostcheck.h"
-static CURLcode test_unit1397(char *arg)
+static CURLcode test_unit1397(const char *arg)
{
UNITTEST_BEGIN_SIMPLE
#pragma GCC diagnostic ignored "-Wformat"
#endif
-static CURLcode test_unit1398(char *arg)
+static CURLcode test_unit1398(const char *arg)
{
UNITTEST_BEGIN_SIMPLE
* E.g., if t_starttransfer took 2 seconds initially and took another 1
* second for the redirect request, then the resulting t_starttransfer should
* be 3 seconds. */
-static CURLcode test_unit1399(char *arg)
+static CURLcode test_unit1399(const char *arg)
{
UNITTEST_BEGIN_SIMPLE
curl_global_cleanup();
}
-static CURLcode test_unit1600(char *arg)
+static CURLcode test_unit1600(const char *arg)
{
CURL *easy;
#include "curl_md5.h"
-static CURLcode test_unit1601(char *arg)
+static CURLcode test_unit1601(const char *arg)
{
UNITTEST_BEGIN_SIMPLE
Curl_hash_destroy(hash);
}
-static CURLcode test_unit1602(char *arg)
+static CURLcode test_unit1602(const char *arg)
{
struct Curl_hash hash;
Curl_hash_destroy(hash_static);
}
-static CURLcode test_unit1603(char *arg)
+static CURLcode test_unit1603(const char *arg)
{
struct Curl_hash hash_static;
curl_global_cleanup();
}
-static CURLcode test_unit1605(char *arg)
+static CURLcode test_unit1605(const char *arg)
{
CURL *easy;
return finaltime;
}
-static CURLcode test_unit1606(char *arg)
+static CURLcode test_unit1606(const char *arg)
{
struct Curl_easy *easy;
return res;
}
-static CURLcode test_unit1607(char *arg)
+static CURLcode test_unit1607(const char *arg)
{
/* In builds without IPv6 support CURLOPT_RESOLVE should skip over those
addresses, so we have to do that as well. */
return CURLE_OK;
}
-static CURLcode test_unit1608(char *arg)
+static CURLcode test_unit1608(const char *arg)
{
UNITTEST_BEGIN(t1608_setup())
#else
-static CURLcode test_unit1608(char *arg)
+static CURLcode test_unit1608(const char *arg)
{
UNITTEST_BEGIN_SIMPLE
UNITTEST_END_SIMPLE
expected result: cached address has zero timestamp and new address
*/
-static CURLcode test_unit1609(char *arg)
+static CURLcode test_unit1609(const char *arg)
{
UNITTEST_BEGIN(t1609_setup())
return res;
}
-static CURLcode test_unit1610(char *arg)
+static CURLcode test_unit1610(const char *arg)
{
UNITTEST_BEGIN(t1610_setup())
#include "curl_md4.h"
-static CURLcode test_unit1611(char *arg)
+static CURLcode test_unit1611(const char *arg)
{
UNITTEST_BEGIN_SIMPLE
#include "curl_hmac.h"
#include "curl_md5.h"
-static CURLcode test_unit1612(char *arg)
+static CURLcode test_unit1612(const char *arg)
{
UNITTEST_BEGIN_SIMPLE
#include "noproxy.h"
-static CURLcode test_unit1614(char *arg)
+static CURLcode test_unit1614(const char *arg)
{
UNITTEST_BEGIN_SIMPLE
#include "curl_sha512_256.h"
-static CURLcode test_unit1615(char *arg)
+static CURLcode test_unit1615(const char *arg)
{
UNITTEST_BEGIN_SIMPLE
Curl_uint_hash_destroy(hash);
}
-static CURLcode test_unit1616(char *arg)
+static CURLcode test_unit1616(const char *arg)
{
struct uint_hash hash;
free(options);
}
-static CURLcode test_unit1620(char *arg)
+static CURLcode test_unit1620(const char *arg)
{
UNITTEST_BEGIN(t1620_setup())
#include "doh.h"
-static CURLcode test_unit1650(char *arg)
+static CURLcode test_unit1650(const char *arg)
{
UNITTEST_BEGIN_SIMPLE
#include "vtls/x509asn1.h"
-static CURLcode test_unit1651(char *arg)
+static CURLcode test_unit1651(const char *arg)
{
UNITTEST_BEGIN_SIMPLE
return strncmp(info, two, nl - info);
}
-static CURLcode test_unit1652(char *arg)
+static CURLcode test_unit1652(const char *arg)
{
struct Curl_easy *easy;
return ret;
}
-static CURLcode test_unit1653(char *arg)
+static CURLcode test_unit1653(const char *arg)
{
UNITTEST_BEGIN_SIMPLE
#include "urldata.h"
#include "altsvc.h"
-static CURLcode test_unit1654(char *arg)
+static CURLcode test_unit1654(const char *arg)
{
UNITTEST_BEGIN_SIMPLE
#include "doh.h" /* from the lib dir */
-static CURLcode test_unit1655(char *arg)
+static CURLcode test_unit1655(const char *arg)
{
UNITTEST_BEGIN_SIMPLE
return TRUE;
}
-static CURLcode test_unit1656(char *arg)
+static CURLcode test_unit1656(const char *arg)
{
UNITTEST_BEGIN_SIMPLE
#else
-static CURLcode test_unit1656(char *arg)
+static CURLcode test_unit1656(const char *arg)
{
UNITTEST_BEGIN_SIMPLE
puts("not tested since Curl_x509_GTime2str() is not built in");
return TRUE;
}
-static CURLcode test_unit1657(char *arg)
+static CURLcode test_unit1657(const char *arg)
{
UNITTEST_BEGIN_SIMPLE
#else
-static CURLcode test_unit1657(char *arg)
+static CURLcode test_unit1657(const char *arg)
{
UNITTEST_BEGIN_SIMPLE
puts("not tested since Curl_x509_getASN1Element() is not built in");
}
}
-static CURLcode test_unit1658(char *arg)
+static CURLcode test_unit1658(const char *arg)
{
UNITTEST_BEGIN(t1658_setup())
#else /* CURL_DISABLE_DOH or not HTTPSRR enabled */
-static CURLcode test_unit1658(char *arg)
+static CURLcode test_unit1658(const char *arg)
{
UNITTEST_BEGIN_SIMPLE
UNITTEST_END_SIMPLE
#include "hsts.h"
#if defined(CURL_DISABLE_HTTP) || defined(CURL_DISABLE_HSTS)
-static CURLcode test_unit1660(char *arg)
+static CURLcode test_unit1660(const char *arg)
{
UNITTEST_BEGIN_SIMPLE
puts("nothing to do when HTTP or HSTS are disabled");
}
}
-static CURLcode test_unit1660(char *arg)
+static CURLcode test_unit1660(const char *arg)
{
UNITTEST_BEGIN_SIMPLE
Curl_bufref_free(bufref);
}
-static CURLcode test_unit1661(char *arg)
+static CURLcode test_unit1661(const char *arg)
{
struct bufref bufref;
free(host);
}
-static CURLcode test_unit1663(char *arg)
+static CURLcode test_unit1663(const char *arg)
{
UNITTEST_BEGIN(t1663_setup())
return res;
}
-static CURLcode test_unit1664(char *arg)
+static CURLcode test_unit1664(const char *arg)
{
UNITTEST_BEGIN(t1664_setup())
#include "http_aws_sigv4.h"
-static CURLcode test_unit1979(char *arg)
+static CURLcode test_unit1979(const char *arg)
{
UNITTEST_BEGIN_SIMPLE
#include "http_aws_sigv4.h"
-static CURLcode test_unit1980(char *arg)
+static CURLcode test_unit1980(const char *arg)
{
UNITTEST_BEGIN_SIMPLE
#define TC_TMOT 90000 /* 90 sec max test duration */
#define CNCT_TMOT 60000 /* 60sec connect timeout */
-static CURLcode test_unit2600(char *arg)
+static CURLcode test_unit2600(const char *arg)
{
CURL *easy;
Curl_bufcp_free(&pool);
}
-static CURLcode test_unit2601(char *arg)
+static CURLcode test_unit2601(const char *arg)
{
UNITTEST_BEGIN_SIMPLE
#include "dynhds.h"
#include "curl_trc.h"
-static CURLcode test_unit2602(char *arg)
+static CURLcode test_unit2602(const char *arg)
{
UNITTEST_BEGIN_SIMPLE
}
#endif
-static CURLcode test_unit2603(char *arg)
+static CURLcode test_unit2603(const char *arg)
{
UNITTEST_BEGIN_SIMPLE
#include "vssh/curl_path.h"
#include "memdebug.h"
-static CURLcode test_unit2604(char *arg)
+static CURLcode test_unit2604(const char *arg)
{
UNITTEST_BEGIN_SIMPLE
#include "curl_get_line.h"
#include "memdebug.h"
-static CURLcode test_unit3200(char *arg)
+static CURLcode test_unit3200(const char *arg)
{
UNITTEST_BEGIN_SIMPLE
#include "vtls/cipher_suite.h"
-static CURLcode test_unit3205(char *arg)
+static CURLcode test_unit3205(const char *arg)
{
UNITTEST_BEGIN_SIMPLE
Curl_uint_bset_destroy(&bset);
}
-static CURLcode test_unit3211(char *arg)
+static CURLcode test_unit3211(const char *arg)
{
UNITTEST_BEGIN_SIMPLE
Curl_uint_tbl_destroy(tbl);
}
-static CURLcode test_unit3212(char *arg)
+static CURLcode test_unit3212(const char *arg)
{
struct uint_tbl tbl;
int dummy;
Curl_uint_spbset_destroy(&bset);
}
-static CURLcode test_unit3213(char *arg)
+static CURLcode test_unit3213(const char *arg)
{
UNITTEST_BEGIN_SIMPLE
#define MAX_CURLMSG 24
#define MAX_CURL_HEADER 48
-static CURLcode test_unit3214(char *arg)
+static CURLcode test_unit3214(const char *arg)
{
UNITTEST_BEGIN_SIMPLE