summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2005-09-13 12:38:06 +0000
committerCarl Worth <cworth@cworth.org>2005-09-13 12:38:06 +0000
commit4a078039192a57df54f258fe6ff7c1e9a9bbb613 (patch)
tree64c24bac6616887e4be88d0272e2c29eada29940
parent36f4bb98371a3a81ccc6ccf6f3295b9e48e8c8c9 (diff)
Adjust parameters to stress things a bit more, (better exposing another locking bug).
-rw-r--r--ChangeLog5
-rw-r--r--test/pthread-show-text.c10
2 files changed, 10 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index d22770a41..41e1a8843 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2005-09-13 Carl Worth <cworth@cworth.org>
+ * test/pthread-show-text.c: (start), (main): Adjust parameters to
+ stress things a bit more, (better exposing another locking bug).
+
+2005-09-13 Carl Worth <cworth@cworth.org>
+
* src/cairo-scaled-font.c: (cairo_scaled_font_reference),
(cairo_scaled_font_destroy): Expand locking to encapsulate any
modification to the reference count of a scaled font, rather than
diff --git a/test/pthread-show-text.c b/test/pthread-show-text.c
index b0e37ff71..71a86759b 100644
--- a/test/pthread-show-text.c
+++ b/test/pthread-show-text.c
@@ -46,7 +46,7 @@ start (void *closure)
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 @@ start (void *closure)
}
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 @@ main (int argc, char *argv[0])
if (argc > 1) {
num_threads = atoi (argv[1]);
} else {
- num_threads = 10;
+ num_threads = 20;
}
cairo_test_init ("pthread-show-text");