aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/daemontest1.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/daemon/daemontest1.c')
-rw-r--r--src/daemon/daemontest1.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/daemon/daemontest1.c b/src/daemon/daemontest1.c
index 77abd6c3..4c2103f1 100644
--- a/src/daemon/daemontest1.c
+++ b/src/daemon/daemontest1.c
@@ -131,14 +131,14 @@ static int testInternalGet() {
131 return 2; 131 return 2;
132 } 132 }
133 curl_easy_cleanup(c); 133 curl_easy_cleanup(c);
134 if (cbc.pos != strlen("hello_world")) { 134 if (cbc.pos != strlen("/hello_world")) {
135 MHD_stop_daemon(d); 135 MHD_stop_daemon(d);
136 return 4; 136 return 4;
137 } 137 }
138 138
139 if (0 != strncmp("hello_world", 139 if (0 != strncmp("/hello_world",
140 cbc.buf, 140 cbc.buf,
141 strlen("hello_world"))) { 141 strlen("/hello_world"))) {
142 MHD_stop_daemon(d); 142 MHD_stop_daemon(d);
143 return 8; 143 return 8;
144 } 144 }
@@ -190,16 +190,18 @@ static int testMultithreadedGet() {
190 curl_easy_setopt(c, 190 curl_easy_setopt(c,
191 CURLOPT_NOSIGNAL, 191 CURLOPT_NOSIGNAL,
192 1); 192 1);
193 if (CURLE_OK != curl_easy_perform(c)) 193 if (CURLE_OK != curl_easy_perform(c)) {
194 MHD_stop_daemon(d);
194 return 32; 195 return 32;
196 }
195 curl_easy_cleanup(c); 197 curl_easy_cleanup(c);
196 if (cbc.pos != strlen("hello_world")) { 198 if (cbc.pos != strlen("/hello_world")) {
197 MHD_stop_daemon(d); 199 MHD_stop_daemon(d);
198 return 64; 200 return 64;
199 } 201 }
200 if (0 != strncmp("hello_world", 202 if (0 != strncmp("/hello_world",
201 cbc.buf, 203 cbc.buf,
202 strlen("hello_world"))) { 204 strlen("/hello_world"))) {
203 MHD_stop_daemon(d); 205 MHD_stop_daemon(d);
204 return 128; 206 return 128;
205 } 207 }