mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-04-25 08:30:39 +02:00
[test/surface-finish-twice.c] Adapt to recent change that multiple finish is ok
This commit is contained in:
parent
a30209402c
commit
4957a78947
1 changed files with 5 additions and 1 deletions
|
|
@ -63,7 +63,11 @@ draw (cairo_t *cr, int width, int height)
|
|||
return CAIRO_TEST_FAILURE;
|
||||
|
||||
cairo_surface_finish (surface);
|
||||
if (cairo_surface_status (surface) != CAIRO_STATUS_SURFACE_FINISHED)
|
||||
if (cairo_surface_status (surface) != CAIRO_STATUS_SUCCESS)
|
||||
return CAIRO_TEST_FAILURE;
|
||||
|
||||
cairo_surface_finish (surface);
|
||||
if (cairo_surface_status (surface) != CAIRO_STATUS_SUCCESS)
|
||||
return CAIRO_TEST_FAILURE;
|
||||
|
||||
cairo_surface_destroy (surface);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue