expand unit tests
This commit is contained in:
@@ -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());
|
||||
|
Reference in New Issue
Block a user