diff options
Diffstat (limited to 'src/daemon/daemontest_post.c')
-rw-r--r-- | src/daemon/daemontest_post.c | 27 |
1 files changed, 6 insertions, 21 deletions
diff --git a/src/daemon/daemontest_post.c b/src/daemon/daemontest_post.c index 6764450e..ec60575b 100644 --- a/src/daemon/daemontest_post.c +++ b/src/daemon/daemontest_post.c | |||
@@ -142,19 +142,11 @@ testInternalPost () | |||
142 | return 2; | 142 | return 2; |
143 | } | 143 | } |
144 | curl_easy_cleanup (c); | 144 | curl_easy_cleanup (c); |
145 | MHD_stop_daemon (d); | ||
145 | if (cbc.pos != strlen ("/hello_world")) | 146 | if (cbc.pos != strlen ("/hello_world")) |
146 | { | 147 | return 4; |
147 | MHD_stop_daemon (d); | ||
148 | return 4; | ||
149 | } | ||
150 | |||
151 | if (0 != strncmp ("/hello_world", cbc.buf, strlen ("/hello_world"))) | 148 | if (0 != strncmp ("/hello_world", cbc.buf, strlen ("/hello_world"))) |
152 | { | 149 | return 8; |
153 | MHD_stop_daemon (d); | ||
154 | return 8; | ||
155 | } | ||
156 | MHD_stop_daemon (d); | ||
157 | |||
158 | return 0; | 150 | return 0; |
159 | } | 151 | } |
160 | 152 | ||
@@ -202,18 +194,11 @@ testMultithreadedPost () | |||
202 | return 32; | 194 | return 32; |
203 | } | 195 | } |
204 | curl_easy_cleanup (c); | 196 | curl_easy_cleanup (c); |
197 | MHD_stop_daemon (d); | ||
205 | if (cbc.pos != strlen ("/hello_world")) | 198 | if (cbc.pos != strlen ("/hello_world")) |
206 | { | 199 | return 64; |
207 | MHD_stop_daemon (d); | ||
208 | return 64; | ||
209 | } | ||
210 | if (0 != strncmp ("/hello_world", cbc.buf, strlen ("/hello_world"))) | 200 | if (0 != strncmp ("/hello_world", cbc.buf, strlen ("/hello_world"))) |
211 | { | 201 | return 128; |
212 | MHD_stop_daemon (d); | ||
213 | return 128; | ||
214 | } | ||
215 | MHD_stop_daemon (d); | ||
216 | |||
217 | return 0; | 202 | return 0; |
218 | } | 203 | } |
219 | 204 | ||