#include "curlx.h"
-#include <stdlib.h> /* for calloc(), free(), strtol() */
-#include <string.h> /* for strchr(), strcmp() */
-
#define ERR() \
do { \
curl_mfprintf(stderr, "something unexpected went wrong - bailing out!\n");\
*/
#include "first.h"
-#include <assert.h>
-
static void usage_h2_pausing(const char *msg)
{
if(msg)
#include "first.h"
#ifdef HAVE_LOCALE_H
-# include <locale.h> /* for setlocale() */
+#include <locale.h> /* for setlocale() */
#endif
#include "memdebug.h"
-#include "curlx/timediff.h"
-#include "curlx/binmode.h"
int select_wrapper(int nfds, fd_set *rd, fd_set *wr, fd_set *exc,
struct timeval *tv)
***************************************************************************/
#include "first.h"
-#include "testutil.h"
#include "memdebug.h"
struct t1485_transfer_status {
***************************************************************************/
#include "first.h"
-#include "testutil.h"
#include "memdebug.h"
static CURLcode test_lib1500(char *URL)
***************************************************************************/
#include "first.h"
-#include <fcntl.h>
-
#include "memdebug.h"
static CURLcode test_lib1501(char *URL)
#include "first.h"
-#include <limits.h>
-
-#include "testutil.h"
#include "memdebug.h"
static CURLcode test_lib1502(char *URL)
***************************************************************************/
#include "first.h"
-#include "testutil.h"
#include "memdebug.h"
static CURLcode test_lib1506(char *URL)
***************************************************************************/
#include "first.h"
-#include "timediff.h"
#include "memdebug.h"
/*
***************************************************************************/
#include "first.h"
-#include "testutil.h"
#include "memdebug.h"
static CURLcode test_lib1508(char *URL)
***************************************************************************/
#include "first.h"
-#include "testutil.h"
#include "memdebug.h"
size_t WriteOutput(char *ptr, size_t size, size_t nmemb, void *stream);
***************************************************************************/
#include "first.h"
-#include "testutil.h"
#include "memdebug.h"
static CURLcode test_lib1510(char *URL)
#include "first.h"
#include "testtrace.h"
-#include "testutil.h"
#include "memdebug.h"
#define DNS_TIMEOUT 1L
/* test case and code based on https://github.com/curl/curl/issues/2847 */
#include "testtrace.h"
-#include "testutil.h"
#include "memdebug.h"
static int sockopt_callback(void *clientp, curl_socket_t curlfd,
/* test case and code based on https://github.com/curl/curl/issues/3927 */
-#include "testutil.h"
#include "memdebug.h"
static int dload_progress_cb(void *a, curl_off_t b, curl_off_t c,
***************************************************************************/
#include "first.h"
-#include "testutil.h"
-#include "timediff.h"
#include "memdebug.h"
static CURLcode test_lib1531(char *URL)
#include "first.h"
#include "testtrace.h"
-#include "testutil.h"
#include "memdebug.h"
struct t1540_transfer_status {
***************************************************************************/
#include "first.h"
-#include "testutil.h"
#include "memdebug.h"
struct t1541_transfer_status {
#include "first.h"
-#include "testutil.h"
#include "testtrace.h"
#include "memdebug.h"
***************************************************************************/
#include "first.h"
-#include "testutil.h"
#include "memdebug.h"
static CURLcode test_lib1552(char *URL)
***************************************************************************/
#include "first.h"
-#include "testutil.h"
#include "testtrace.h"
#include "memdebug.h"
***************************************************************************/
#include "first.h"
-#include "testutil.h"
#include "memdebug.h"
struct headerinfo {
***************************************************************************/
#include "first.h"
-#include "testutil.h"
#include "memdebug.h"
static CURLcode test_lib1557(char *URL)
***************************************************************************/
#include "first.h"
-#include "testutil.h"
#include "memdebug.h"
static CURLcode test_lib1558(char *URL)
***************************************************************************/
#include "first.h"
-#include "testutil.h"
#include "memdebug.h"
static CURLcode test_lib1559(char *URL)
#define USE_IDN
#endif
-#include "testutil.h"
#include "memdebug.h" /* LAST include file */
static int checkparts(CURLU *u, const char *in, const char *wanted,
***************************************************************************/
#include "first.h"
-#include "testutil.h"
#include "memdebug.h"
#ifdef HAVE_PTHREAD_H
#include <pthread.h>
-#include <unistd.h>
#define CONN_NUM 3
#define TIME_BETWEEN_START_SECS 2
***************************************************************************/
#include "first.h"
-#include "testtrace.h"
#include "memdebug.h"
static CURLcode test_lib1568(char *URL)
***************************************************************************/
#include "first.h"
-#include "testtrace.h"
#include "memdebug.h"
static CURLcode test_lib1569(char *URL)
#include "first.h"
-#include <stdio.h>
-
#include "memdebug.h"
static size_t consumed = 0;
#include "first.h"
-#include "testutil.h"
-
-#include <sys/stat.h>
-
static CURLcode test_lib1592(char *URL)
{
int stillRunning;
#include "first.h"
-#include <stdio.h>
-
#include "memdebug.h"
/*
***************************************************************************/
#include "first.h"
-#include "testtrace.h"
-
static CURLcode test_lib1599(char *URL)
{
CURL *curl;
***************************************************************************/
#include "first.h"
-#include "testutil.h"
#include "memdebug.h"
static CURLcode test_lib1900(char *URL)
***************************************************************************/
#include "first.h"
-#include "testutil.h"
#include "memdebug.h"
static size_t t1901_read_cb(char *ptr, size_t size, size_t nmemb, void *stream)
***************************************************************************/
#include "first.h"
-#include "testutil.h"
-#include "timediff.h"
#include "memdebug.h"
static CURLcode test_lib1903(char *URL)
***************************************************************************/
#include "first.h"
-#include "testutil.h"
-#include "timediff.h"
#include "memdebug.h"
static CURLcode test_lib1905(char *URL)
***************************************************************************/
#include "first.h"
-#include "testutil.h"
#include "memdebug.h"
static CURLcode test_lib1906(char *URL)
***************************************************************************/
#include "first.h"
-#include "testutil.h"
#include "memdebug.h"
static CURLcode test_lib1907(char *URL)
***************************************************************************/
#include "first.h"
-#include "testutil.h"
#include "memdebug.h"
static CURLcode test_lib1908(char *URL)
***************************************************************************/
#include "first.h"
-#include "testutil.h"
#include "memdebug.h"
static CURLcode test_lib1910(char *URL)
***************************************************************************/
#include "first.h"
-#include "testutil.h"
#include "memdebug.h"
/* The maximum string length limit (CURL_MAX_INPUT_LENGTH) is an internal
***************************************************************************/
#include "first.h"
-#include "testutil.h"
#include "memdebug.h"
#define print_err(name, exp) \
***************************************************************************/
#include "first.h"
-#include "testutil.h"
#include "memdebug.h"
static CURLcode test_lib1913(char *URL)
#include "first.h"
#include "testtrace.h"
-#include "testutil.h"
#include "memdebug.h"
struct state {
***************************************************************************/
#include "first.h"
-#include "testutil.h"
#include "memdebug.h"
static CURLcode test_lib1918(char *URL)
***************************************************************************/
#include "first.h"
-#include "testutil.h"
#include "memdebug.h"
static CURLcode test_lib1919(char *URL)
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
-#ifndef _WIN32
-#include <sys/socket.h>
-#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
***************************************************************************/
#include "first.h"
-#include "testutil.h"
#include "memdebug.h"
static CURLcode test_lib1977(char *URL)
***************************************************************************/
#include "first.h"
-#include <limits.h>
-#include <assert.h>
-
-#include "testutil.h"
#include "memdebug.h"
#define MAX_EASY_HANDLES 3
***************************************************************************/
#include "first.h"
-#include "testtrace.h"
-
static CURLcode test_lib2306(char *URL)
{
/* first a fine GET response, then a bad one */
***************************************************************************/
#include "first.h"
-#include "testtrace.h"
-
static size_t cb_curl(char *buffer, size_t size, size_t nmemb, void *userp)
{
(void)buffer;
***************************************************************************/
#include "first.h"
-#include "testtrace.h"
-
static size_t cb_ignore(char *buffer, size_t size, size_t nmemb, void *userp)
{
(void)buffer;
***************************************************************************/
#include "first.h"
-#include "testutil.h"
#include "memdebug.h"
static CURLcode test_lib2402(char *URL)
***************************************************************************/
#include "first.h"
-#include "testutil.h"
#include "memdebug.h"
static CURLcode test_lib2404(char *URL)
#include "first.h"
-#include "testutil.h"
#include "memdebug.h"
/* ---------------------------------------------------------------- */
#include "first.h"
#include "testtrace.h"
-#include "testutil.h"
#include "memdebug.h"
static CURLcode test_lib2502(char *URL)
***************************************************************************/
#include "first.h"
-#include "testutil.h"
-
#define NUM_THREADS 100
#ifdef _WIN32
#elif defined(HAVE_PTHREAD_H)
#include <pthread.h>
-#include <unistd.h>
static void *t3026_run_thread(void *ptr)
{
***************************************************************************/
#include "first.h"
-#include "testutil.h"
#include "memdebug.h"
static CURLcode test_lib3027(char *URL)
***************************************************************************/
#include "first.h"
-#include "testutil.h"
#include "memdebug.h"
static CURLcode test_lib3105(char *URL)
***************************************************************************/
#include "first.h"
-#include "testutil.h"
#include "memdebug.h"
-#include <stdio.h>
-
#if defined(USE_THREADS_POSIX) || defined(USE_THREADS_WIN32)
#if defined(USE_THREADS_POSIX)
#include <pthread.h>
***************************************************************************/
#include "first.h"
-#include "testutil.h"
#include "memdebug.h"
static CURLcode test_lib3208(char *URL)
***************************************************************************/
#include "first.h"
-#include "testutil.h"
#include "memdebug.h"
/*
***************************************************************************/
#include "first.h"
-#include "testutil.h"
#include "memdebug.h"
/*
***************************************************************************/
#include "first.h"
-#include "testutil.h"
#include "memdebug.h"
/*
***************************************************************************/
#include "first.h"
-#ifdef HAVE_FCNTL_H
-#include <fcntl.h>
-#endif
-
#include "memdebug.h"
/*
***************************************************************************/
#include "first.h"
-#include "testutil.h"
#include "memdebug.h"
static CURLcode test_lib507(char *URL)
***************************************************************************/
#include "first.h"
-#include <string.h>
-
/*
* This test uses these funny custom memory callbacks for the only purpose
* of verifying that curl_global_init_mem() functionality is present in
***************************************************************************/
#include "first.h"
-#ifdef HAVE_FCNTL_H
-#include <fcntl.h>
-#endif
-
#include "testutil.h"
#include "memdebug.h"
{
(void)URL;
curl_mprintf("system lacks necessary system function(s)");
- return 1; /* skip test */
+ return TEST_ERR_MAJOR_BAD; /* skip test */
}
#endif /* defined(HAVE_GETRLIMIT) && defined(HAVE_SETRLIMIT) */
***************************************************************************/
#include "first.h"
-#include <fcntl.h>
-
-#include "testutil.h"
#include "memdebug.h"
static CURLcode test_lib525(char *URL)
#include "first.h"
-#include <fcntl.h>
-
-#include "testutil.h"
#include "memdebug.h"
static CURLcode test_lib526(char *URL)
#include "first.h"
-#include <fcntl.h>
-
#include "memdebug.h"
#include "first.h"
-#include <fcntl.h>
-
-#include "testutil.h"
#include "memdebug.h"
static CURLcode test_lib533(char *URL)
***************************************************************************/
#include "first.h"
-#ifdef HAVE_FCNTL_H
-#include <fcntl.h>
-#endif
-
#include "testutil.h"
#include "memdebug.h"
* avoid a low memory condition once the file descriptors are
* open. System conditions that could make the test fail should
* be addressed in the precheck phase. This chunk of memory shall
- * be always free()ed before exiting the test_rlimit() function so
+ * be always free()ed before exiting the t537_test_rlimit() function so
* that it becomes available to the test.
*/
#include "first.h"
-#include <limits.h>
-
-#include "testutil.h"
#include "memdebug.h"
#define PROXY libtest_arg2
***************************************************************************/
#include "first.h"
-#ifdef HAVE_FCNTL_H
-#include <fcntl.h>
-#endif
-
#include "memdebug.h"
/*
***************************************************************************/
#include "first.h"
-#ifdef HAVE_FCNTL_H
-#include <fcntl.h>
-#endif
-
#include "memdebug.h"
/*
#include "first.h"
-#include "testutil.h"
#include "memdebug.h"
static const char uploadthis[] = "this is the blurb we want to upload\n";
#include "first.h"
-#include <limits.h>
-
#ifdef HAVE_LOCALE_H
# include <locale.h> /* for setlocale() */
#endif
***************************************************************************/
#include "first.h"
-#include "testtrace.h"
#include "memdebug.h"
static CURLcode test_lib559(char *URL)
***************************************************************************/
#include "first.h"
-#include "testutil.h"
#include "memdebug.h"
/*
***************************************************************************/
#include "first.h"
-#ifdef HAVE_FCNTL_H
-#include <fcntl.h>
-#endif
-
#include "memdebug.h"
/*
***************************************************************************/
#include "first.h"
-#include <fcntl.h>
-
-#include "testutil.h"
#include "memdebug.h"
static CURLcode test_lib564(char *URL)
***************************************************************************/
#include "first.h"
-#ifdef HAVE_SYS_STAT_H
-#include <sys/stat.h>
-#endif
-#ifdef HAVE_FCNTL_H
-#include <fcntl.h>
-#endif
-
#include "testutil.h"
#include "memdebug.h"
#include "first.h"
#ifdef HAVE_NETINET_IN_H
-# include <netinet/in.h>
+#include <netinet/in.h>
#endif
#ifdef HAVE_NETDB_H
-# include <netdb.h>
+#include <netdb.h>
#endif
#ifdef HAVE_ARPA_INET_H
-# include <arpa/inet.h>
-#endif
-#ifdef HAVE_SYS_STAT_H
-# include <sys/stat.h>
-#endif
-#ifdef HAVE_FCNTL_H
-# include <fcntl.h>
+#include <arpa/inet.h>
#endif
#include "testutil.h"
***************************************************************************/
#include "first.h"
-#ifdef HAVE_SYS_STAT_H
-#include <sys/stat.h>
-#endif
-#ifdef HAVE_FCNTL_H
-#include <fcntl.h>
-#endif
-
#include "testutil.h"
#include "memdebug.h"
#include "first.h"
#include "testtrace.h"
-#include "testutil.h"
#include "memdebug.h"
/*
***************************************************************************/
#include "first.h"
-#include <fcntl.h>
-
-#include "testutil.h"
#include "memdebug.h"
/* 3x download!
***************************************************************************/
#include "first.h"
-#include "testutil.h"
#include "memdebug.h"
struct chunk_data {
***************************************************************************/
#include "first.h"
-#include <fcntl.h>
-
#include "memdebug.h"
struct t582_Sockets {
#include "first.h"
-#include <sys/stat.h>
-
#include "memdebug.h"
static CURLcode test_lib583(char *URL)
* SPDX-License-Identifier: curl
*
***************************************************************************/
-#include "first.h"
-
/* lib591 is used for test cases 591, 592, 593 and 594 */
-#include <limits.h>
-
-#include <fcntl.h>
+#include "first.h"
-#include "testutil.h"
#include "memdebug.h"
static CURLcode test_lib591(char *URL)
***************************************************************************/
#include "first.h"
-#include <limits.h>
-
-#include "testutil.h"
#include "memdebug.h"
/*
***************************************************************************/
#include "first.h"
-#include "testutil.h"
-#include "warnless.h"
#include "memdebug.h"
static CURLcode test_lib653(char *URL)
***************************************************************************/
#include "first.h"
-#include "testutil.h"
#include "memdebug.h"
/*
***************************************************************************/
#include "first.h"
-#include "testutil.h"
#include "memdebug.h"
/*
***************************************************************************/
#include "first.h"
-#include <time.h>
-
#include "memdebug.h"
#define PAUSE_TIME 5
***************************************************************************/
#include "first.h"
-#include "testutil.h"
#include "memdebug.h"
/*
***************************************************************************/
#include "first.h"
-#include "testutil.h"
#include "memdebug.h"
static CURLcode test_lib677(char *URL)
***************************************************************************/
#include "first.h"
-#include "testutil.h"
#include "memdebug.h"
static int loadfile(const char *filename, void **filedata, size_t *filesize)
***************************************************************************/
#include "first.h"
-#include "testutil.h"
#include "memdebug.h"
/*
***************************************************************************/
#include "first.h"
-#include "testutil.h"
#include "testtrace.h"
#include "memdebug.h"
***************************************************************************/
#include "first.h"
#include "memdebug.h"
-#include <limits.h>
/* This source code is generated by mk-lib1521.pl ! */
#ifdef HAVE_SYS_SELECT_H
/* since so many tests use select(), we can just as well include it here */
#include <sys/select.h>
-#elif defined(HAVE_UNISTD_H)
-#include <unistd.h>
#endif
#include "curl_printf.h"
char *tutil_suburl(const char *base, int i);
#ifdef HAVE_SYS_RESOURCE_H
-#include <sys/resource.h>
+#include <sys/resource.h> /* for getrlimit() */
#endif
-#include <limits.h>
-
#if defined(HAVE_GETRLIMIT) && defined(HAVE_SETRLIMIT)
void tutil_rlim2str(char *buf, size_t len, rlim_t val);
#endif
#include "tool_getparam.h"
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-
#include "memdebug.h" /* LAST include file */
static CURLcode test_tool1394(char *arg)
#include "tool_cfgable.h"
#include "tool_doswin.h"
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-
#include "memdebug.h" /* LAST include file */
#if defined(_WIN32) || defined(MSDOS)
#include "curlcheck.h"
#ifdef HAVE_NETINET_IN_H
-# include <netinet/in.h>
+#include <netinet/in.h>
#endif
#ifdef HAVE_NETDB_H
-# include <netdb.h>
+#include <netdb.h>
#endif
#ifdef HAVE_ARPA_INET_H
-# include <arpa/inet.h>
+#include <arpa/inet.h>
#endif
#include <curlx.h>