test-ostream-file.c revision e34d170f8f0e084bd94bfbc1a7085ece67e508df
/* Copyright (c) 2009-2012 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 {
}
}
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();
}