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