/* Copyright (c) 2009-2018 Dovecot authors, see the included COPYING file */
#include "test-lib.h"
#include "str.h"
#include "istream-private.h"
#include "istream-tee.h"
{
test_begin("istream tee tailing");
for (i = 0; i < CHILD_COUNT; i++)
delta = 1;
for (i = 0; i < CHILD_COUNT; i++) {
}
delta = 1;
}
for (i = 0; i < CHILD_COUNT; i++) {
}
delta = 1;
for (i = 0; i < CHILD_COUNT; i++) {
}
for (i = 0; i < CHILD_COUNT; i++) {
if (i == lagger)
continue;
}
for (i = 0; i < CHILD_COUNT; i++) {
}
delta = 1;
}
for (i = 0; i < CHILD_COUNT-1; i++) {
}
for (i = 0; i < CHILD_COUNT; i++) {
i_stream_unref(&child_input[i]);
}
test_end();
}
{
unsigned int i, j;
test_begin("istream tee blocks");
for (i = 0; i < CHILD_COUNT; i++)
for (j = 1; j <= 3; j++) {
for (i = 0; i < CHILD_COUNT; i++) {
}
}
for (i = 0; i < CHILD_COUNT; i++) {
i_stream_unref(&child_input[i]);
}
test_end();
}
void test_istream_tee(void)
{
unsigned int i;
for (i = 0; i < TEST_STR_LEN; i++)
}