Fix ftruncate test
This commit is contained in:
parent
885fc0ce9d
commit
8862c16ef7
@ -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);
|
||||
}
|
||||
|
@ -25,5 +25,5 @@ TEST_P(FuseFTruncateFileDescriptorTest, FileDescriptorIsCorrect) {
|
||||
//Needed to make ::ftruncate system call return successfully
|
||||
ReturnIsFileOnFstat(GetParam());
|
||||
|
||||
FTruncateFile(FILENAME, GetParam());
|
||||
FTruncateFile(FILENAME, 0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user