/* Copyright (c) 2015-2018 Dovecot authors, see the included COPYING file */
#include "test-lib.h"
#include "istream.h"
#include "istream-failure-at.h"
void test_istream_failure_at(void)
{
unsigned int i;
test_begin("istream failure at");
for (i = 0; i < sizeof(test_data); i++)
test_data[i] = i;
for (i = 0; i < TEST_DATA_LENGTH; i++) {
i_stream_seek(data_input, 0);
}
/* shouldn't fail */
i_stream_seek(data_input, 0);
/* fail at EOF */
i_stream_seek(data_input, 0);
test_end();
}