From 9845175dca8f76d68a1af0044aa91bfc3b502d18 Mon Sep 17 00:00:00 2001 From: Sebastian Messmer Date: Sat, 15 Oct 2022 15:05:32 -0700 Subject: [PATCH] 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 --- test/fspp/testutils/FuseTest.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/fspp/testutils/FuseTest.cpp b/test/fspp/testutils/FuseTest.cpp index ba44a1e0..fa45ba8f 100644 --- a/test/fspp/testutils/FuseTest.cpp +++ b/test/fspp/testutils/FuseTest.cpp @@ -54,6 +54,8 @@ FuseTest::FuseTest(): fsimpl(make_shared()), _context(boost::non })); ReturnIsDirOnLstat("/"); + ReturnDoesntExistOnLstat("/.Trash"); + ReturnDoesntExistOnLstat("/.Trash-1000"); } unique_ref FuseTest::TestFS(const std::vector& fuseOptions) {