src/server/test/io.c

changeset 549
b26bec196a2e
parent 548
40ecc0a6b280
child 550
77241b3ba544
equal deleted inserted replaced
548:40ecc0a6b280 549:b26bec196a2e
184 184
185 int64_t chunklen; 185 int64_t chunklen;
186 int ret; 186 int ret;
187 187
188 ret = http_stream_parse_chunk_header(str, len, TRUE, &chunklen); 188 ret = http_stream_parse_chunk_header(str, len, TRUE, &chunklen);
189 //UCX_TEST_ASSERT(ret == -1, "ret != -1 (test 1a)"); 189 UCX_TEST_ASSERT(ret == -1, "ret != -1 (test 1a)");
190 ret = http_stream_parse_chunk_header(str, len, FALSE, &chunklen); 190 ret = http_stream_parse_chunk_header(str, len, FALSE, &chunklen);
191 //UCX_TEST_ASSERT(ret == -1, "ret != -1 (test 1b)"); 191 UCX_TEST_ASSERT(ret == -1, "ret != -1 (test 1b)");
192 192
193 ret = http_stream_parse_chunk_header(str2, len2, TRUE, &chunklen); 193 ret = http_stream_parse_chunk_header(str2, len2, TRUE, &chunklen);
194 //UCX_TEST_ASSERT(ret == -1, "ret != -1 (test 1a)"); 194 UCX_TEST_ASSERT(ret == -1, "ret != -1 (test 2a)");
195 ret = http_stream_parse_chunk_header(str2, len2, FALSE, &chunklen); 195 ret = http_stream_parse_chunk_header(str2, len2, FALSE, &chunklen);
196 //UCX_TEST_ASSERT(ret == -1, "ret != -1 (test 1b)"); 196 UCX_TEST_ASSERT(ret == -1, "ret != -1 (test 2b)");
197 197
198 ret = http_stream_parse_chunk_header(str3, len3, TRUE, &chunklen); 198 ret = http_stream_parse_chunk_header(str3, len3, TRUE, &chunklen);
199 //UCX_TEST_ASSERT(ret == -1, "ret != -1 (test 1a)"); 199 UCX_TEST_ASSERT(ret == -1, "ret != -1 (test 3a)");
200 ret = http_stream_parse_chunk_header(str3, len3, FALSE, &chunklen); 200 ret = http_stream_parse_chunk_header(str3, len3, FALSE, &chunklen);
201 //UCX_TEST_ASSERT(ret == -1, "ret != -1 (test 1b)"); 201 UCX_TEST_ASSERT(ret == -1, "ret != -1 (test 3b)");
202 202
203 UCX_TEST_END; 203 UCX_TEST_END;
204 free(str); 204 free(str);
205 free(str2); 205 free(str2);
206 free(str3); 206 free(str3);

mercurial