From a9b74de734dc22c27cb097bb69f2edba1927dc7f Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 13 Apr 2008 04:55:23 +0000 Subject: [PATCH] mov --- src/testzzuf/daemontest_get.c | 10 ---------- src/testzzuf/daemontest_get_chunked.c | 10 ---------- src/testzzuf/daemontest_large_put.c | 10 ---------- src/testzzuf/daemontest_long_header.c | 15 ++------------- src/testzzuf/daemontest_post.c | 11 ----------- src/testzzuf/daemontest_postform.c | 10 ---------- src/testzzuf/daemontest_put.c | 10 ---------- src/testzzuf/daemontest_put_chunked.c | 10 ---------- src/testzzuf/socat.c | 10 ++++++++++ 9 files changed, 12 insertions(+), 84 deletions(-) diff --git a/src/testzzuf/daemontest_get.c b/src/testzzuf/daemontest_get.c index 5e4b2d28..eb766991 100644 --- a/src/testzzuf/daemontest_get.c +++ b/src/testzzuf/daemontest_get.c @@ -37,16 +37,6 @@ #include "socat.c" -/** - * A larger loop count will run more random tests -- - * which would be good, except that it may take too - * long for most user's patience. So this small - * value is the default. - */ -#define LOOP_COUNT 10 - -#define CURL_TIMEOUT 50L - static int oneone; struct CBC diff --git a/src/testzzuf/daemontest_get_chunked.c b/src/testzzuf/daemontest_get_chunked.c index cde1e46b..7b7ac5a0 100644 --- a/src/testzzuf/daemontest_get_chunked.c +++ b/src/testzzuf/daemontest_get_chunked.c @@ -37,16 +37,6 @@ #include "socat.c" -/** - * A larger loop count will run more random tests -- - * which would be good, except that it may take too - * long for most user's patience. So this small - * value is the default. - */ -#define LOOP_COUNT 10 - -#define CURL_TIMEOUT 50L - struct CBC { char *buf; diff --git a/src/testzzuf/daemontest_large_put.c b/src/testzzuf/daemontest_large_put.c index 2a80bdb4..b39ff737 100644 --- a/src/testzzuf/daemontest_large_put.c +++ b/src/testzzuf/daemontest_large_put.c @@ -37,16 +37,6 @@ #include "socat.c" -/** - * A larger loop count will run more random tests -- - * which would be good, except that it may take too - * long for most user's patience. So this small - * value is the default. - */ -#define LOOP_COUNT 10 - -#define CURL_TIMEOUT 50L - static int oneone; /** diff --git a/src/testzzuf/daemontest_long_header.c b/src/testzzuf/daemontest_long_header.c index 42bd1114..ebd2ff36 100644 --- a/src/testzzuf/daemontest_long_header.c +++ b/src/testzzuf/daemontest_long_header.c @@ -37,16 +37,6 @@ #include "socat.c" -/** - * A larger loop count will run more random tests -- - * which would be good, except that it may take too - * long for most user's patience. So this small - * value is the default. - */ -#define LOOP_COUNT 10 - -#define CURL_TIMEOUT 50L - /** * We will set the memory available per connection to * half of this value, so the actual value does not have @@ -186,14 +176,12 @@ testLongHeaderGet () for (i = 0; i < LOOP_COUNT; i++) { fprintf (stderr, "."); - - c = curl_easy_init (); url = malloc (VERY_LONG); memset (url, 'a', VERY_LONG); url[VERY_LONG - 1] = '\0'; url[VERY_LONG / 2] = ':'; - url[VERY_LONG / 2 + 1] = ':'; + url[VERY_LONG / 2 + 1] = ' '; header = curl_slist_append (header, url); curl_easy_setopt (c, CURLOPT_HTTPHEADER, header); @@ -213,6 +201,7 @@ testLongHeaderGet () curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); curl_easy_perform (c); curl_slist_free_all (header); + header = NULL; curl_easy_cleanup (c); } fprintf (stderr, "\n"); diff --git a/src/testzzuf/daemontest_post.c b/src/testzzuf/daemontest_post.c index 690ab218..7823d1ed 100644 --- a/src/testzzuf/daemontest_post.c +++ b/src/testzzuf/daemontest_post.c @@ -38,17 +38,6 @@ #include "socat.c" -/** - * A larger loop count will run more random tests -- - * which would be good, except that it may take too - * long for most user's patience. So this small - * value is the default. - */ -#define LOOP_COUNT 10 - -#define CURL_TIMEOUT 50L - - #define POST_DATA "name=daniel&project=curl" static int oneone; diff --git a/src/testzzuf/daemontest_postform.c b/src/testzzuf/daemontest_postform.c index e4f6ec3d..767be56e 100644 --- a/src/testzzuf/daemontest_postform.c +++ b/src/testzzuf/daemontest_postform.c @@ -38,16 +38,6 @@ #include "socat.c" -/** - * A larger loop count will run more random tests -- - * which would be good, except that it may take too - * long for most user's patience. So this small - * value is the default. - */ -#define LOOP_COUNT 10 - -#define CURL_TIMEOUT 50L - static int oneone; struct CBC diff --git a/src/testzzuf/daemontest_put.c b/src/testzzuf/daemontest_put.c index 82ab2289..8cd367c9 100644 --- a/src/testzzuf/daemontest_put.c +++ b/src/testzzuf/daemontest_put.c @@ -38,16 +38,6 @@ #include "socat.c" -/** - * A larger loop count will run more random tests -- - * which would be good, except that it may take too - * long for most user's patience. So this small - * value is the default. - */ -#define LOOP_COUNT 10 - -#define CURL_TIMEOUT 50L - static int oneone; struct CBC diff --git a/src/testzzuf/daemontest_put_chunked.c b/src/testzzuf/daemontest_put_chunked.c index a78db8d3..61caa2e6 100644 --- a/src/testzzuf/daemontest_put_chunked.c +++ b/src/testzzuf/daemontest_put_chunked.c @@ -38,16 +38,6 @@ #include "socat.c" -/** - * A larger loop count will run more random tests -- - * which would be good, except that it may take too - * long for most user's patience. So this small - * value is the default. - */ -#define LOOP_COUNT 10 - -#define CURL_TIMEOUT 50L - struct CBC { char *buf; diff --git a/src/testzzuf/socat.c b/src/testzzuf/socat.c index 800d5c37..d918b891 100644 --- a/src/testzzuf/socat.c +++ b/src/testzzuf/socat.c @@ -30,6 +30,16 @@ #include +/** + * A larger loop count will run more random tests -- + * which would be good, except that it may take too + * long for most user's patience. So this small + * value is the default. + */ +#define LOOP_COUNT 10 + +#define CURL_TIMEOUT 50L + static pid_t zzuf_pid; static void