diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2009-04-16 13:01:52 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2009-04-20 10:21:24 +0100 |
commit | 817589e1967ebdd5e5bda1781eb76010fd8c37dc (patch) | |
tree | ca194b06faebfefc910a3ab15353731f0b4edacd /test/cairo-test.c | |
parent | be27e844c83c0f5cf25dee1c62768dbf70897a06 (diff) |
[test] Call FcInit() manually.
Pre-initialise fontconfig whilst memfault is disabled to avoid a lot of
expensive, redundant testing of FcInit() throughout the test suite.
Diffstat (limited to 'test/cairo-test.c')
-rw-r--r-- | test/cairo-test.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/cairo-test.c b/test/cairo-test.c index 897332ab..96ab2dcd 100644 --- a/test/cairo-test.c +++ b/test/cairo-test.c @@ -743,6 +743,12 @@ REPEAT: VALGRIND_RESET_LEAKS (); ctx->last_fault_count = 0; last_fault_count = VALGRIND_COUNT_FAULTS (); + + /* Pre-initialise fontconfig so that the configuration is loaded without + * malloc failures (our primary goal is to test cairo fault tolerance). + */ + FcInit (); + VALGRIND_ENABLE_FAULTS (); #endif have_output = FALSE; |