From c4444ea0c412d580a9ff0423bd9fa4d8b535490b Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 12 Jun 2014 12:18:59 +0200 Subject: Avoid Solar Mutex deadlocks when disposing services ...as test code using gb_CppunitTest_use_vcl is implicitly run with Solar Mutex locked Change-Id: I480b4bcce7c6a94922019679099b0883b3ee1030 --- postprocess/CppunitTest_services.mk | 1 + postprocess/qa/services.cxx | 2 ++ 2 files changed, 3 insertions(+) (limited to 'postprocess') diff --git a/postprocess/CppunitTest_services.mk b/postprocess/CppunitTest_services.mk index bdcae7bbe0c6..08c860e16412 100644 --- a/postprocess/CppunitTest_services.mk +++ b/postprocess/CppunitTest_services.mk @@ -21,6 +21,7 @@ $(eval $(call gb_CppunitTest_use_libraries,services, \ cppu \ sal \ test \ + vcl \ $(gb_UWINAPI) \ )) diff --git a/postprocess/qa/services.cxx b/postprocess/qa/services.cxx index 2d29e918a420..a7052c1180fe 100644 --- a/postprocess/qa/services.cxx +++ b/postprocess/qa/services.cxx @@ -16,6 +16,7 @@ #include #include #include +#include using namespace css::container; using namespace css::reflection; @@ -87,6 +88,7 @@ void ServicesTest::test() } } } + SolarMutexReleaser rel; for (std::vector< css::uno::Reference >::iterator i( comps.begin()); i != comps.end(); ++i) -- cgit v1.2.3