Improved flush test cases

This commit is contained in:
Sebastian Messmer 2014-11-25 14:32:05 +01:00
parent 748f38c991
commit 6f5c1c17e9
2 changed files with 0 additions and 4 deletions

View File

@ -22,8 +22,6 @@ TEST_P(FuseFlushErrorTest, ReturnErrorFromFlush) {
EXPECT_CALL(fsimpl, openFile(StrEq(FILENAME), _)).WillOnce(Return(GetParam()));
EXPECT_CALL(fsimpl, flush(Eq(GetParam()))).Times(1).WillOnce(Throw(FuseErrnoException(GetParam())));
// Allow calls to closeFile(), but don't enforce them
EXPECT_CALL(fsimpl, closeFile(Eq(GetParam()))).Times(AtLeast(0));
auto fs = TestFS();
int fd = OpenFile(fs.get(), FILENAME);

View File

@ -30,8 +30,6 @@ TEST_P(FuseFlushFileDescriptorTest, FlushOnCloseFile) {
EXPECT_CALL(fsimpl, openFile(StrEq(FILENAME), _)).WillOnce(Return(GetParam()));
EXPECT_CALL(fsimpl, flush(Eq(GetParam()))).Times(1);
// Allow calls to closeFile(), but don't enforce them
EXPECT_CALL(fsimpl, closeFile(Eq(GetParam()))).Times(AtLeast(0));
OpenAndCloseFile(FILENAME);
}