test-ostream-file.c revision 7cb128dc4cae2a03a742f63ba7afee23c78e3af0
/* Copyright (c) 2009-2015 Dovecot authors, see the included COPYING file */
#include "test-lib.h"
#include "str.h"
#include "safe-mkstemp.h"
#include "randgen.h"
#include "ostream.h"
#include <stdlib.h>
#include <unistd.h>
#define MAX_BUFSIZE 256
static void test_ostream_file_random(void)
{
int fd;
if (fd == -1)
for (i = 0; i < 10; i++) {
if (rand() % 10 == 0)
}
if (ret < 0)
i_fatal("pread() failed: %m");
else {
}
i_close_fd(&fd);
}
void test_ostream_file(void)
{
unsigned int i;
test_begin("ostream pwrite random");
for (i = 0; i < 100; i++) T_BEGIN {
} T_END;
test_end();
}