diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2007-09-26 00:41:31 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2007-09-26 00:41:31 +0100 |
commit | 76b9b1819251c8f3df0a5ada92a501ad83baa5a1 (patch) | |
tree | 5396f918eabf75073688d5e6d205c95bba1e01a0 /test/create-for-stream.c | |
parent | 1e7f0bd4d5148940fe963eb20782bffe5ee735bd (diff) | |
download | cairo-76b9b1819251c8f3df0a5ada92a501ad83baa5a1.tar.gz |
[test/create-for-stream] Add the missing cairo_surface_finish().
Moments after pushing the new test case did I realise the issue...
We do not attempt to write out the surface to the user stream until
we perform the cairo_surface_destroy() by which point we have lost
the ability to interrogate the error status. We can avoid this by
explicitly calling cairo_surface_finish() and then checking the
error status - and we see that the error is indeed reported
correctly.
No bug. Nothing to see here. Please move along. (Apart from the
request for the status to be return from cairo_surface_destroy!)
Diffstat (limited to 'test/create-for-stream.c')
-rw-r--r-- | test/create-for-stream.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/create-for-stream.c b/test/create-for-stream.c index 4a5828572..d6cb23b1c 100644 --- a/test/create-for-stream.c +++ b/test/create-for-stream.c @@ -153,6 +153,7 @@ test_surface (const char *backend, draw_to (surface); + cairo_surface_finish (surface); status = cairo_surface_status (surface); cairo_surface_destroy (surface); |