expand unit tests

This commit is contained in:
Arvid Norberg
2013-02-24 10:02:26 +00:00
parent 6faec32ebc
commit 3599b130c0
12 changed files with 205 additions and 15 deletions

View File

@@ -239,7 +239,7 @@ void create_random_files(std::string const& path, const int file_sizes[], int nu
while (to_write > 0)
{
int s = (std::min)(to_write, 300000);
file::iovec_t b = { random_data, s};
file::iovec_t b = { random_data, size_t(s)};
f.writev(offset, &b, 1, ec);
if (ec) fprintf(stderr, "failed to write file \"%s\": (%d) %s\n"
, full_path.c_str(), ec.value(), ec.message().c_str());