From 1e9ecb2a2771ea6699e22b2693c96f4927d96ffb Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Fri, 28 Aug 2015 19:07:35 +0200 Subject: vcl: try to disable font cache in CppUnit tests With size 1 every ImplFontEntry should be immediately deleted, which makes tools like valgrind and drmemory more useful. Change-Id: Idec40c7cf7d927146f23830a42b3464c1675207f --- vcl/source/outdev/font.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vcl/source/outdev') diff --git a/vcl/source/outdev/font.cxx b/vcl/source/outdev/font.cxx index 6960525f3b53..ebe2bf9d805b 100644 --- a/vcl/source/outdev/font.cxx +++ b/vcl/source/outdev/font.cxx @@ -1409,7 +1409,7 @@ void ImplFontCache::Acquire(ImplFontEntry* pEntry) void ImplFontCache::Release(ImplFontEntry* pEntry) { - static const int FONTCACHE_MAX = 50; + static const int FONTCACHE_MAX = getenv("LO_TESTNAME") ? 1 : 50; assert(pEntry->mnRefCount > 0 && "ImplFontCache::Release() - font refcount underflow"); if( --pEntry->mnRefCount > 0 ) -- cgit v1.2.3