summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--netfs/unittests/mockFuse.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/netfs/unittests/mockFuse.cpp b/netfs/unittests/mockFuse.cpp
index 554a62d..b283d7b 100644
--- a/netfs/unittests/mockFuse.cpp
+++ b/netfs/unittests/mockFuse.cpp
@@ -37,7 +37,10 @@ FuseMock::connectToService()
void
FuseMock::vlogf(int, const char * fmt, va_list args) const noexcept
{
- BOOST_TEST_MESSAGE(vstringf(fmt, args));
+ static std::mutex btm;
+ ScopeLock(btm) {
+ BOOST_TEST_MESSAGE(vstringf(fmt, args));
+ }
}
FuseMockHost::FuseMockHost(std::string ep, const Ice::StringSeq & a) :