On some systems, when mounting a test file system, the OS asks for /.Trash and /.Trash-1000 and will unmount if the file system returns an error. So let's tell the operating system that those don't exist instead

This commit is contained in:
Sebastian Messmer 2022-10-15 15:05:32 -07:00
parent 2bbac4956b
commit 9845175dca
1 changed files with 2 additions and 0 deletions

View File

@ -54,6 +54,8 @@ FuseTest::FuseTest(): fsimpl(make_shared<MockFilesystem>()), _context(boost::non
}));
ReturnIsDirOnLstat("/");
ReturnDoesntExistOnLstat("/.Trash");
ReturnDoesntExistOnLstat("/.Trash-1000");
}
unique_ref<FuseTest::TempTestFS> FuseTest::TestFS(const std::vector<std::string>& fuseOptions) {