Kaydet (Commit) 1e9ecb2a authored tarafından Michael Stahl's avatar Michael Stahl

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
üst 6a223b9a
......@@ -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 )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment