summaryrefslogtreecommitdiff
path: root/test/pthread-show-text.c
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2007-02-10 09:38:13 -0800
committerCarl Worth <cworth@cworth.org>2007-02-13 10:47:06 -0800
commitd6d1767f9a89bf7e16288d0a90e5fafc5ad2d9d6 (patch)
tree7e9580bf31535b5e004c855772d9d3d151eec457 /test/pthread-show-text.c
parentfdffde8b9e7a2308b822ddef7b02a8e85cc8ba1e (diff)
downloadcairo-d6d1767f9a89bf7e16288d0a90e5fafc5ad2d9d6.tar.gz
Increase pthread-show-text thread count and add cairo_select_font_face to expose more bugs.
Diffstat (limited to 'test/pthread-show-text.c')
-rw-r--r--test/pthread-show-text.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/pthread-show-text.c b/test/pthread-show-text.c
index 94724c776..b674e3753 100644
--- a/test/pthread-show-text.c
+++ b/test/pthread-show-text.c
@@ -39,7 +39,7 @@
#include <fontconfig/fontconfig.h>
#endif
-#define NUM_THREADS_DEFAULT 20
+#define NUM_THREADS_DEFAULT 50
#define NUM_ITERATIONS 50
static void *
@@ -62,6 +62,9 @@ start (void *closure)
cairo_move_to (cr, 1, 1);
for (i=0; i < NUM_ITERATIONS; i++) {
+ cairo_select_font_face (cr, "serif",
+ CAIRO_FONT_SLANT_NORMAL,
+ CAIRO_FONT_WEIGHT_NORMAL);
cairo_set_font_size (cr, 8 + i);
cairo_show_text (cr, "Hello world.\n");
}