summaryrefslogtreecommitdiff
path: root/vcl/source/outdev
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2015-08-28 19:07:35 +0200
committerMichael Stahl <mstahl@redhat.com>2015-08-31 16:37:18 +0200
commit1e9ecb2a2771ea6699e22b2693c96f4927d96ffb (patch)
tree7f3db3d5d80807893f8547f942d6350f39ba2f33 /vcl/source/outdev
parent6a223b9acf8571e098cc6f74edcd3060d3fcfe27 (diff)
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
Diffstat (limited to 'vcl/source/outdev')
-rw-r--r--vcl/source/outdev/font.cxx2
1 files changed, 1 insertions, 1 deletions
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 )