summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorM Joonas Pihlaja <jpihlaja@cc.helsinki.fi>2009-09-05 02:25:01 +0300
committerM Joonas Pihlaja <jpihlaja@cc.helsinki.fi>2009-09-05 02:25:01 +0300
commit29432d3d32bc84ec4a2e1815a84e4ac2089138fe (patch)
tree9f084b1df1bf5207aa3ce2219a1d07c5ec88ede2 /test
parent20b0e7f95448e496b609212b9608f75e03f223f8 (diff)
[test] Reorder dash-infinite-loop to not hit a runaway allocation.
This test is annoying enough as it is what with it wedging the test suite and all. There's no reason why it should DOS the running box as well by sitting in a loop allocating like mad.
Diffstat (limited to 'test')
-rw-r--r--test/dash-infinite-loop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/dash-infinite-loop.c b/test/dash-infinite-loop.c
index a3d75442..5476137f 100644
--- a/test/dash-infinite-loop.c
+++ b/test/dash-infinite-loop.c
@@ -68,9 +68,9 @@ draw (cairo_t *cr, int width, int height)
/* The following calls will wedge in various places that try
* to advance the dashing in a loop inside the stroker. */
+ do_dash (cr, 30, 30, 1); /* _cairo_stroker_dash_start */
do_dash (cr, 30, 30, 0); /* _cairo_stroker_line_to_dashed */
do_dash (cr, 30, 0, 0); /* _cairo_rectilinear_stroker_line_to_dashed */
- do_dash (cr, 30, 30, 1); /* _cairo_stroker_dash_start */
return CAIRO_TEST_SUCCESS;
}