Fix ftruncate test

This commit is contained in:
Sebastian Messmer 2014-11-28 11:54:00 +01:00
parent 885fc0ce9d
commit 8862c16ef7
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ TEST_P(FuseFTruncateErrorTest, ReturnedErrorIsCorrect) {
//Needed to make ::ftruncate system call return successfully
ReturnIsFileOnFstat(0);
int retval = FTruncateFileAllowError(FILENAME, GetParam());
int retval = FTruncateFileAllowError(FILENAME, 0);
EXPECT_EQ(GetParam(), errno);
EXPECT_EQ(-1, retval);
}

View File

@ -25,5 +25,5 @@ TEST_P(FuseFTruncateFileDescriptorTest, FileDescriptorIsCorrect) {
//Needed to make ::ftruncate system call return successfully
ReturnIsFileOnFstat(GetParam());
FTruncateFile(FILENAME, GetParam());
FTruncateFile(FILENAME, 0);
}