From 817589e1967ebdd5e5bda1781eb76010fd8c37dc Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 16 Apr 2009 13:01:52 +0100 Subject: [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. --- test/cairo-test.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/cairo-test.c') 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; -- cgit v1.2.3