aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/daemontest_get.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/daemon/daemontest_get.c')
-rw-r--r--src/daemon/daemontest_get.c27
1 files changed, 6 insertions, 21 deletions
diff --git a/src/daemon/daemontest_get.c b/src/daemon/daemontest_get.c
index f5ef084f..e8ce1e7a 100644
--- a/src/daemon/daemontest_get.c
+++ b/src/daemon/daemontest_get.c
@@ -120,19 +120,11 @@ testInternalGet ()
120 return 2; 120 return 2;
121 } 121 }
122 curl_easy_cleanup (c); 122 curl_easy_cleanup (c);
123 MHD_stop_daemon (d);
123 if (cbc.pos != strlen ("/hello_world")) 124 if (cbc.pos != strlen ("/hello_world"))
124 { 125 return 4;
125 MHD_stop_daemon (d);
126 return 4;
127 }
128
129 if (0 != strncmp ("/hello_world", cbc.buf, strlen ("/hello_world"))) 126 if (0 != strncmp ("/hello_world", cbc.buf, strlen ("/hello_world")))
130 { 127 return 8;
131 MHD_stop_daemon (d);
132 return 8;
133 }
134 MHD_stop_daemon (d);
135
136 return 0; 128 return 0;
137} 129}
138 130
@@ -177,18 +169,11 @@ testMultithreadedGet ()
177 return 32; 169 return 32;
178 } 170 }
179 curl_easy_cleanup (c); 171 curl_easy_cleanup (c);
172 MHD_stop_daemon (d);
180 if (cbc.pos != strlen ("/hello_world")) 173 if (cbc.pos != strlen ("/hello_world"))
181 { 174 return 64;
182 MHD_stop_daemon (d);
183 return 64;
184 }
185 if (0 != strncmp ("/hello_world", cbc.buf, strlen ("/hello_world"))) 175 if (0 != strncmp ("/hello_world", cbc.buf, strlen ("/hello_world")))
186 { 176 return 128;
187 MHD_stop_daemon (d);
188 return 128;
189 }
190 MHD_stop_daemon (d);
191
192 return 0; 177 return 0;
193} 178}
194 179