aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2008-09-11 02:50:17 +0000
committerChristian Grothoff <christian@grothoff.org>2008-09-11 02:50:17 +0000
commitd6aff032347ea051610fd23c1791f5ed37fec512 (patch)
treed3387668b42c43394123498cd2a9a869ad28f2b4
parent047188f0f7e658682c4983c6b05f8b26845904eb (diff)
downloadlibmicrohttpd-d6aff032347ea051610fd23c1791f5ed37fec512.tar.gz
libmicrohttpd-d6aff032347ea051610fd23c1791f5ed37fec512.zip
fix
-rw-r--r--src/testcurl/https/mhds_multi_daemon_test.c4
-rw-r--r--src/testcurl/https/mhds_session_info_test.c3
-rw-r--r--src/testcurl/https/tls_authentication_test.c3
3 files changed, 7 insertions, 3 deletions
diff --git a/src/testcurl/https/mhds_multi_daemon_test.c b/src/testcurl/https/mhds_multi_daemon_test.c
index 38e6c20a..97effd60 100644
--- a/src/testcurl/https/mhds_multi_daemon_test.c
+++ b/src/testcurl/https/mhds_multi_daemon_test.c
@@ -29,6 +29,8 @@
29#include <curl/curl.h> 29#include <curl/curl.h>
30#include <sys/stat.h> 30#include <sys/stat.h>
31 31
32#define DEBUG_CURL_VERBOSE 0
33
32#define PAGE_NOT_FOUND "<html><head><title>File not found</title></head><body>File not found</body></html>" 34#define PAGE_NOT_FOUND "<html><head><title>File not found</title></head><body>File not found</body></html>"
33 35
34#define MHD_E_SERVER_INIT "Error: failed to start server\n" 36#define MHD_E_SERVER_INIT "Error: failed to start server\n"
@@ -162,7 +164,7 @@ test_daemon_get (FILE * test_fd, char *cipher_suite, int proto_version,
162 test_file_name); 164 test_file_name);
163 165
164 c = curl_easy_init (); 166 c = curl_easy_init ();
165#ifdef DEBUG 167#if DEBUG_CURL_VERBOSE
166 curl_easy_setopt (c, CURLOPT_VERBOSE, 1); 168 curl_easy_setopt (c, CURLOPT_VERBOSE, 1);
167#endif 169#endif
168 curl_easy_setopt (c, CURLOPT_URL, url); 170 curl_easy_setopt (c, CURLOPT_URL, url);
diff --git a/src/testcurl/https/mhds_session_info_test.c b/src/testcurl/https/mhds_session_info_test.c
index 99d7455b..67e80746 100644
--- a/src/testcurl/https/mhds_session_info_test.c
+++ b/src/testcurl/https/mhds_session_info_test.c
@@ -28,6 +28,7 @@
28#include "microhttpd.h" 28#include "microhttpd.h"
29#include <curl/curl.h> 29#include <curl/curl.h>
30 30
31#define DEBUG_CURL_VERBOSE 0
31#define EMPTY_PAGE "<html><head><title>Empty page</title></head><body>Empty page</body></html>" 32#define EMPTY_PAGE "<html><head><title>Empty page</title></head><body>Empty page</body></html>"
32 33
33#include "tls_test_keys.h" 34#include "tls_test_keys.h"
@@ -166,7 +167,7 @@ test_query_session ()
166 return 2; 167 return 2;
167 168
168 c = curl_easy_init (); 169 c = curl_easy_init ();
169#ifdef DEBUG 170#ifdef DEBUG_CURL_VERBOSE
170 curl_easy_setopt (c, CURLOPT_VERBOSE, 1); 171 curl_easy_setopt (c, CURLOPT_VERBOSE, 1);
171#endif 172#endif
172 curl_easy_setopt (c, CURLOPT_URL, url); 173 curl_easy_setopt (c, CURLOPT_URL, url);
diff --git a/src/testcurl/https/tls_authentication_test.c b/src/testcurl/https/tls_authentication_test.c
index edc018b2..f7d05a74 100644
--- a/src/testcurl/https/tls_authentication_test.c
+++ b/src/testcurl/https/tls_authentication_test.c
@@ -29,6 +29,7 @@
29#include <curl/curl.h> 29#include <curl/curl.h>
30#include <sys/stat.h> 30#include <sys/stat.h>
31 31
32#define DEBUG_CURL_VERBOSE 0
32#define PAGE_NOT_FOUND "<html><head><title>File not found</title></head><body>File not found</body></html>" 33#define PAGE_NOT_FOUND "<html><head><title>File not found</title></head><body>File not found</body></html>"
33 34
34#define MHD_E_MEM "Error: memory error\n" 35#define MHD_E_MEM "Error: memory error\n"
@@ -170,7 +171,7 @@ test_daemon_get (FILE * test_fd, char *cipher_suite, int proto_version)
170 doc_path, test_file_name); 171 doc_path, test_file_name);
171 172
172 c = curl_easy_init (); 173 c = curl_easy_init ();
173#ifdef DEBUG 174#if DEBUG_CURL_VERBOSE
174 curl_easy_setopt (c, CURLOPT_VERBOSE, 1); 175 curl_easy_setopt (c, CURLOPT_VERBOSE, 1);
175#endif 176#endif
176 curl_easy_setopt (c, CURLOPT_URL, url); 177 curl_easy_setopt (c, CURLOPT_URL, url);