[cairo-commit] cairo/test pthread-show-text.c,1.1.2.2,1.1.2.3
Carl Worth
commit at pdx.freedesktop.org
Tue Sep 13 12:38:08 PDT 2005
Committed by: cworth
Update of /cvs/cairo/cairo/test
In directory gabe:/tmp/cvs-serv13040/test
Modified Files:
Tag: BRANCH_1_0
pthread-show-text.c
Log Message:
2005-09-13 Carl Worth <cworth at cworth.org>
* test/pthread-show-text.c: (start), (main): Adjust parameters to
stress things a bit more, (better exposing another locking bug).
Index: pthread-show-text.c
===================================================================
RCS file: /cvs/cairo/cairo/test/pthread-show-text.c,v
retrieving revision 1.1.2.2
retrieving revision 1.1.2.3
diff -u -d -r1.1.2.2 -r1.1.2.3
--- pthread-show-text.c 13 Sep 2005 19:22:45 -0000 1.1.2.2
+++ pthread-show-text.c 13 Sep 2005 19:38:06 -0000 1.1.2.3
@@ -46,7 +46,7 @@
cairo_t *cr;
int i;
- surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, 100, 100);
+ surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, 1, 1);
cr = cairo_create (surface);
cairo_save (cr);
@@ -56,10 +56,10 @@
}
cairo_restore (cr);
- cairo_move_to (cr, 10, 10);
+ cairo_move_to (cr, 1, 1);
- for (i=0; i < 3; i++) {
- cairo_set_font_size (cr, 8 + i % 3);
+ for (i=0; i < 10; i++) {
+ cairo_set_font_size (cr, 8 + i);
cairo_show_text (cr, "Hello world.\n");
}
@@ -79,7 +79,7 @@
if (argc > 1) {
num_threads = atoi (argv[1]);
} else {
- num_threads = 10;
+ num_threads = 20;
}
cairo_test_init ("pthread-show-text");
More information about the cairo-commit
mailing list