From eeebdac3e8b2bfdeba1069f61b3a8ee6382be1b1 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 4 Jan 2013 00:43:58 -0600 Subject: [PATCH] Enable test-pangocairo-threads by default Using 100 threads and 100 iterations per thread. Only passes with fontconfig master. We will get a release made and required soon... --- tests/Makefile.am | 2 +- tests/test-pangocairo-threads.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/Makefile.am b/tests/Makefile.am index 56a741a..274ad73 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -43,7 +43,7 @@ TESTS_ENVIRONMENT = \ check_PROGRAMS = testboundaries testboundaries_ucd testcolor testscript test-pangocairo-threads if HAVE_CAIRO -check_PROGRAMS += testiter +check_PROGRAMS += testiter test-pangocairo-threads endif if HAVE_FREETYPE check_PROGRAMS += test-ot-tags diff --git a/tests/test-pangocairo-threads.c b/tests/test-pangocairo-threads.c index 6242839..e358f74 100644 --- a/tests/test-pangocairo-threads.c +++ b/tests/test-pangocairo-threads.c @@ -6,6 +6,7 @@ #define WIDTH 100 #define HEIGHT 100 const char *text = "The quick brown fox jumped over the lazy dog!"; + int num_iters = 100; GMutex mutex; @@ -62,7 +63,7 @@ thread_func (gpointer data) int main (int argc, char **argv) { - int num_threads = 2; + int num_threads = 100; int i; GPtrArray *threads = g_ptr_array_new (); GPtrArray *surfaces = g_ptr_array_new (); -- 2.7.4