Improve SparseFiles test.

GitOrigin-RevId: 19d23d82d32cf4aaec57fb258cf93b70cfba5637
This commit is contained in:
levlam 2020-02-19 04:55:25 +03:00
parent 811c4ed95c
commit 468523230a

View File

@ -105,7 +105,7 @@ TEST(Port, SparseFiles) {
fd.pwrite("a", offset).ensure();
ASSERT_EQ(offset + 1, fd.get_size().move_as_ok());
auto real_size = fd.get_real_size().move_as_ok();
if (real_size == offset + 1) {
if (real_size >= offset + 1) {
LOG(ERROR) << "File system doesn't support sparse files, rewind during streaming can be slow";
}
unlink(path).ensure();