"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/lib/test-iostream-proxy.c" between
dovecot-2.3.7.2.tar.gz and dovecot-2.3.8.tar.gz

About: Dovecot is an IMAP and POP3 server, written with security primarily in mind.

test-iostream-proxy.c  (dovecot-2.3.7.2):test-iostream-proxy.c  (dovecot-2.3.8)
skipping to change at line 76 skipping to change at line 76
test_assert(proxy != NULL); test_assert(proxy != NULL);
test_assert(o_stream_send_str(left_out, "hello, world") > 0); test_assert(o_stream_send_str(left_out, "hello, world") > 0);
test_assert(o_stream_flush(left_out) > 0); test_assert(o_stream_flush(left_out) > 0);
o_stream_unref(&left_out); o_stream_unref(&left_out);
test_assert(shutdown(sfdl[0], SHUT_WR) == 0); test_assert(shutdown(sfdl[0], SHUT_WR) == 0);
counter = 1; counter = 1;
io_loop_run(ioloop); io_loop_run(ioloop);
i_stream_read(right_in); test_assert(i_stream_read(right_in) > 0);
test_assert(strcmp((const char*)i_stream_get_data(right_in, &bytes), "hel lo, world") == 0); test_assert(strcmp((const char*)i_stream_get_data(right_in, &bytes), "hel lo, world") == 0);
i_stream_skip(right_in, bytes); i_stream_skip(right_in, bytes);
test_assert(o_stream_send_str(right_out, "hello, world") > 0); test_assert(o_stream_send_str(right_out, "hello, world") > 0);
test_assert(o_stream_flush(right_out) > 0); test_assert(o_stream_flush(right_out) > 0);
o_stream_unref(&right_out); o_stream_unref(&right_out);
test_assert(shutdown(sfdr[0], SHUT_WR) == 0); test_assert(shutdown(sfdr[0], SHUT_WR) == 0);
counter = 1; counter = 1;
io_loop_run(ioloop); io_loop_run(ioloop);
i_stream_read(left_in); test_assert(i_stream_read(left_in) > 0);
test_assert(strcmp((const char*)i_stream_get_data(left_in, &bytes), "hell o, world") == 0); test_assert(strcmp((const char*)i_stream_get_data(left_in, &bytes), "hell o, world") == 0);
i_stream_skip(left_in, bytes); i_stream_skip(left_in, bytes);
iostream_proxy_unref(&proxy); iostream_proxy_unref(&proxy);
io_loop_destroy(&ioloop); io_loop_destroy(&ioloop);
i_stream_unref(&left_in); i_stream_unref(&left_in);
i_stream_unref(&right_in); i_stream_unref(&right_in);
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)