From 7ad3aebbe612ef560d4a73f85db226c8e7caa4b2 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sat, 12 Feb 2011 20:49:02 +0100 Subject: [PATCH] arc-looping-dash: Add a missing cairo_restore () This test called cairo_save () without restoring again. Normally, this doesn't cause a problem. However, when cairo-test-suite is called with "-a", it also executes the tests on a similar surface. This then caused cairo_pop_group_to_source to be called on a cairo_save state which causes a CAIRO_STATUS_INVALID_RESTORE since commit 5d95ae924ed1520. Signed-off-by: Uli Schlachter --- test/arc-looping-dash.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/arc-looping-dash.c b/test/arc-looping-dash.c index 2ad55f6ed..ff5556a54 100644 --- a/test/arc-looping-dash.c +++ b/test/arc-looping-dash.c @@ -66,6 +66,8 @@ draw (cairo_t *cr, int width, int height) cairo_set_dash (cr, dashes, 2, 0); cairo_stroke (cr); + cairo_restore (cr); + return CAIRO_TEST_SUCCESS; }