commit a9b74de734dc22c27cb097bb69f2edba1927dc7f
parent b799dd25c35a0c9907037220a2879bd193726203
Author: Christian Grothoff <christian@grothoff.org>
Date: Sun, 13 Apr 2008 04:55:23 +0000
mov
Diffstat:
9 files changed, 12 insertions(+), 84 deletions(-)
diff --git 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
@@ -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
@@ -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
@@ -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
-
-/**
* We will set the memory available per connection to
* half of this value, so the actual value does not have
* to be big at all...
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -30,6 +30,16 @@
#include <signal.h>
+/**
+ * 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