#include "test.h"
#ifdef CURLDEBUG
-/* provide a proto for this debug function */
-extern void curl_memdebug(const char *);
-extern void curl_memlimit(int);
+# define MEMDEBUG_NODEFINES
+# include "memdebug.h"
#endif
int select_test (int num_fds, fd_set *rd, fd_set *wr, fd_set *exc,
#include "test.h"
+#include "memdebug.h"
+
int test(char *URL)
{
CURLcode res;
#include "test.h"
+#include "memdebug.h"
+
int test(char *URL)
{
CURLcode res;
#include "test.h"
#include "testutil.h"
+#include "memdebug.h"
#define MAIN_LOOP_HANG_TIMEOUT 90 * 1000
#define MULTI_PERFORM_HANG_TIMEOUT 60 * 1000
#include <sys/types.h>
#include "testutil.h"
+#include "memdebug.h"
#define MAIN_LOOP_HANG_TIMEOUT 90 * 1000
#define MULTI_PERFORM_HANG_TIMEOUT 60 * 1000
#include <sys/types.h>
#include "testutil.h"
+#include "memdebug.h"
#define MAIN_LOOP_HANG_TIMEOUT 90 * 1000
#define MULTI_PERFORM_HANG_TIMEOUT 60 * 1000
#include <unistd.h>
#endif
+#include "memdebug.h"
+
/*
* This example shows an FTP upload, with a rename of the file just after
* a successful upload.
#include <curl/mprintf.h>
+#include "memdebug.h"
+
static const char *HOSTHEADER = "Host: www.host.foo.com";
static const char *JAR = "log/jar506";
#define THREADS 2
#include "test.h"
#include "testutil.h"
+#include "memdebug.h"
#define MAIN_LOOP_HANG_TIMEOUT 90 * 1000
#define MULTI_PERFORM_HANG_TIMEOUT 60 * 1000
#include "test.h"
+#include "memdebug.h"
+
static char data[]="this is what we post to the silly web server\n";
struct WriteThis {
#include "test.h"
+#include "memdebug.h"
+
static const char *post[]={
"one",
"two",
#include "test.h"
+#include "memdebug.h"
+
int test(char *URL)
{
CURLcode res;
#include "test.h"
+#include "memdebug.h"
+
/* Test case code based on source in a bug report filed by James Bursa on
28 Apr 2004 */
#include "test.h"
+#include "memdebug.h"
+
static size_t read_callback(void *ptr, size_t size, size_t nmemb, void *userp)
{
(void)ptr;
#include "test.h"
+#include "memdebug.h"
+
int test(char *URL)
{
CURL *curl;
#include "test.h"
+#include "memdebug.h"
+
int test(char *URL)
{
CURL *curl;
#include "test.h"
+#include "memdebug.h"
+
int test(char *URL)
{
CURL *curl;
#include "test.h"
+#include "memdebug.h"
+
static const char *dates[]={
"Sun, 06 Nov 1994 08:49:37 GMT",
"Sunday, 06-Nov-94 08:49:37 GMT",
#include <string.h>
#endif
+#include "memdebug.h"
+
#ifndef FD_SETSIZE
#error "this test requires FD_SETSIZE"
#endif
#include "test.h"
+#include "memdebug.h"
+
int test(char *URL)
{
CURLcode res;
#include "test.h"
+#include "memdebug.h"
+
int test(char *URL)
{
CURLcode res;
#include "test.h"
+#include "memdebug.h"
+
int test(char *URL)
{
CURLcode res;
#include "test.h"
+#include "memdebug.h"
+
int test(char *URL)
{
CURLcode res;
#include "test.h"
+#include "memdebug.h"
+
int test(char *URL)
{
CURLcode res;
#include <fcntl.h>
#include "testutil.h"
+#include "memdebug.h"
#define MAIN_LOOP_HANG_TIMEOUT 90 * 1000
#define MULTI_PERFORM_HANG_TIMEOUT 60 * 1000
#include <fcntl.h>
#include "testutil.h"
+#include "memdebug.h"
#define MAIN_LOOP_HANG_TIMEOUT 90 * 1000
#define MULTI_PERFORM_HANG_TIMEOUT 60 * 1000
#endif
#include "testutil.h"
+#include "memdebug.h"
#define MAIN_LOOP_HANG_TIMEOUT 90 * 1000
#define MULTI_PERFORM_HANG_TIMEOUT 60 * 1000
#include <fcntl.h>
#include "testutil.h"
+#include "memdebug.h"
#define MAIN_LOOP_HANG_TIMEOUT 90 * 1000
#define MULTI_PERFORM_HANG_TIMEOUT 60 * 1000
#include <fcntl.h>
#include "testutil.h"
+#include "memdebug.h"
#define MAIN_LOOP_HANG_TIMEOUT 90 * 1000
#define MULTI_PERFORM_HANG_TIMEOUT 60 * 1000
#include <string.h>
#endif
+#include "memdebug.h"
+
#if !defined(HAVE_POLL_FINE) && \
!defined(USE_WINSOCK) && \
!defined(TPF) && \
#include "test.h"
+#include "memdebug.h"
+
int test(char *URL)
{
CURLcode res;
#include "test.h"
+#include "memdebug.h"
+
#define PROXY libtest_arg2
#define PROXYUSERPWD libtest_arg3
#define HOST test_argv[4]
#include <unistd.h>
#endif
+#include "memdebug.h"
+
/*
* Two FTP uploads, the second with no content sent.
*/
#include <unistd.h>
#endif
+#include "memdebug.h"
+
/*
* FTP get with NOBODY but no HEADER
*/
#include "setup.h"
#include "test.h"
+#include "memdebug.h"
+
int test(char *URL)
{
unsigned char a[] = {0x9c, 0x26, 0x4b, 0x3d, 0x49, 0x4, 0xa1, 0x1,
#include "test.h"
+#include "memdebug.h"
static char teststring[] =
"This\0 is test binary data with an embedded NUL byte\n";
#include "test.h"
+#include "memdebug.h"
+
#define UPLOADTHIS "this is the blurb we want to upload\n"
#ifndef LIB548
#include "test.h"
+#include "memdebug.h"
+
int test(char *URL)
{
CURLcode res;
#include "test.h"
+#include "memdebug.h"
+
struct data {
char trace_ascii; /* 1 or 0 */
};
#include "test.h"
+#include "memdebug.h"
+
#define POSTLEN 40960
static size_t myreadfunc(void *ptr, size_t size, size_t nmemb, void *stream)
#include "test.h"
+#include "memdebug.h"
+
static char data[]="this is what we post to the silly web server\n";
struct WriteThis {
#include "test.h"
#include "testutil.h"
+#include "memdebug.h"
#define MULTI_PERFORM_HANG_TIMEOUT 60 * 1000
#include "test.h"
+#include "memdebug.h"
+
int test(char *URL)
{
CURLcode res;
#include "test.h"
+#include "memdebug.h"
+
int curl_msprintf(char *buffer, const char *format, ...);
#include "setup.h"
#include "testutil.h"
+#include "memdebug.h"
#if defined(WIN32) && !defined(MSDOS)