From 3159ba64813d11433e17c4ebbb91f1ecf14ed9a1 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 9 Jan 2021 14:52:05 +0000 Subject: Add another mutex in vlogf function calling BOOST_TEST_MESSAGE --- netfs/unittests/mockFuse.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) : -- cgit v1.2.3