|
|
@ -365,7 +365,7 @@ TEST(EnvPosixTest, PosixRandomRWFileTest) { |
|
|
|
unique_ptr<RandomRWFile> file; |
|
|
|
unique_ptr<RandomRWFile> file; |
|
|
|
ASSERT_OK(env_->NewRandomRWFile(fname, &file, soptions)); |
|
|
|
ASSERT_OK(env_->NewRandomRWFile(fname, &file, soptions)); |
|
|
|
// If you run the unit test on tmpfs, then tmpfs might not
|
|
|
|
// If you run the unit test on tmpfs, then tmpfs might not
|
|
|
|
// support ftruncate. It is still better to trigger that
|
|
|
|
// support fallocate. It is still better to trigger that
|
|
|
|
// code-path instead of eliminating it completely.
|
|
|
|
// code-path instead of eliminating it completely.
|
|
|
|
file.get()->Allocate(0, 10*1024*1024); |
|
|
|
file.get()->Allocate(0, 10*1024*1024); |
|
|
|
ASSERT_OK(file.get()->Write(100, Slice("Hello world"))); |
|
|
|
ASSERT_OK(file.get()->Write(100, Slice("Hello world"))); |
|
|
|