[test/surface-finish-twice.c] Adapt to recent change that multiple finish is ok

This commit is contained in:
Behdad Esfahbod 2008-05-24 15:16:44 -04:00
parent a30209402c
commit 4957a78947

View file

@ -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);