Fix error in previous commit of 'ftruncate' to 'fallocate'.

Summary:
Fix error in previous commit of 'ftruncate' to 'fallocate'.

Test Plan:

Reviewers:

CC:

Task ID: #

Blame Rev:
This commit is contained in:
Dhruba Borthakur 2013-10-15 13:57:29 -07:00
parent 8457b74c26
commit b825df81e2

View File

@ -365,7 +365,7 @@ TEST(EnvPosixTest, PosixRandomRWFileTest) {
unique_ptr<RandomRWFile> file;
ASSERT_OK(env_->NewRandomRWFile(fname, &file, soptions));
// 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.
file.get()->Allocate(0, 10*1024*1024);
ASSERT_OK(file.get()->Write(100, Slice("Hello world")));