diff options
-rw-r--r-- | netfs/unittests/testFuse.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/netfs/unittests/testFuse.cpp b/netfs/unittests/testFuse.cpp index 1185a7f..0810fbf 100644 --- a/netfs/unittests/testFuse.cpp +++ b/netfs/unittests/testFuse.cpp @@ -7,6 +7,7 @@ #include <filesystem> #include <fuse.h> #include <fuseApp.h> +#include <lockHelpers.h> #include <ostream> #include <thread> @@ -78,7 +79,10 @@ public: vlogf(int, const char * fmt, va_list args) const noexcept override { std::unique_ptr<char, void (*)(void *)> msg(vstrdupf(fmt, args), std::free); - BOOST_TEST_MESSAGE(msg.get()); + static std::mutex btm; + ScopeLock(btm) { + BOOST_TEST_MESSAGE(msg.get()); + } } struct fuse * fs; |