mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-04-21 03:00:47 +02:00
[test/nil-surface] Test that cairo_get_target() returns non-NULL
This commit is contained in:
parent
ef8515b4a6
commit
820341b4c5
1 changed files with 6 additions and 0 deletions
|
|
@ -148,6 +148,12 @@ draw (cairo_t *cr, int width, int height)
|
|||
return CAIRO_TEST_FAILURE;
|
||||
}
|
||||
|
||||
/* Test that get_target returns something valid */
|
||||
if (cairo_get_target (cr2) == NULL) {
|
||||
cairo_test_log ("Error: cairo_get_target() returned NULL\n");
|
||||
return CAIRO_TEST_FAILURE;
|
||||
}
|
||||
|
||||
/* Test that push_group doesn't crash */
|
||||
cairo_push_group (cr2);
|
||||
cairo_stroke (cr2);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue