summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/a8-mask.c2
-rw-r--r--test/bitmap-font.c2
-rw-r--r--test/cairo-test.h1
-rw-r--r--test/caps-joins-alpha.c2
-rw-r--r--test/caps-joins.c2
-rw-r--r--test/caps-sub-paths.c2
-rw-r--r--test/clip-all.c2
-rw-r--r--test/clip-fill-rule-pixel-aligned.c2
-rw-r--r--test/clip-fill-rule.c2
-rw-r--r--test/clip-nesting.c2
-rw-r--r--test/clip-operator.c2
-rw-r--r--test/clip-twice.c2
-rw-r--r--test/composite-integer-translate-over-repeat.c2
-rw-r--r--test/composite-integer-translate-over.c2
-rw-r--r--test/composite-integer-translate-source.c2
-rw-r--r--test/create-from-png-stream.c2
-rw-r--r--test/create-from-png.c2
-rw-r--r--test/dash-caps-joins.c2
-rw-r--r--test/dash-offset-negative.c2
-rw-r--r--test/dash-scale.c2
-rw-r--r--test/dash-zero-length.c2
-rw-r--r--test/degenerate-path.c2
-rw-r--r--test/device-offset-positive.c2
-rw-r--r--test/device-offset.c2
-rw-r--r--test/extend-reflect.c2
-rw-r--r--test/fill-and-stroke-alpha-add.c2
-rw-r--r--test/fill-and-stroke-alpha.c2
-rw-r--r--test/fill-and-stroke.c2
-rw-r--r--test/fill-rule.c2
-rw-r--r--test/filter-nearest-offset.c2
-rw-r--r--test/ft-font-create-for-ft-face.c2
-rw-r--r--test/ft-text-antialias-none.c2
-rw-r--r--test/ft-text-vertical-layout.c2
-rw-r--r--test/get-and-set.c2
-rw-r--r--test/get-group-target.c2
-rw-r--r--test/glyph-cache-pressure.c2
-rw-r--r--test/gradient-alpha.c2
-rw-r--r--test/leaky-dash.c2
-rw-r--r--test/leaky-polygon.c2
-rw-r--r--test/line-width-scale.c2
-rw-r--r--test/line-width.c2
-rw-r--r--test/linear-gradient.c2
-rw-r--r--test/mask-ctm.c2
-rw-r--r--test/mask-surface-ctm.c2
-rw-r--r--test/mask.c2
-rw-r--r--test/move-to-show-surface.c2
-rw-r--r--test/new-sub-path.c2
-rw-r--r--test/nil-surface.c2
-rw-r--r--test/operator-clear.c2
-rw-r--r--test/operator-source.c2
-rw-r--r--test/paint-source-alpha.c2
-rw-r--r--test/paint-with-alpha.c2
-rw-r--r--test/paint.c2
-rw-r--r--test/path-data.c2
-rw-r--r--test/pixman-rotate.c2
-rw-r--r--test/push-group.c2
-rw-r--r--test/rectangle-rounding-error.c2
-rw-r--r--test/rel-path.c2
-rw-r--r--test/scale-source-surface-paint.c2
-rw-r--r--test/select-font-face.c2
-rw-r--r--test/select-font-no-show-text.c2
-rw-r--r--test/self-copy.c2
-rw-r--r--test/self-intersecting.c2
-rw-r--r--test/set-source.c2
-rw-r--r--test/show-glyphs-many.c2
-rw-r--r--test/show-text-current-point.c2
-rw-r--r--test/source-clip.c2
-rw-r--r--test/source-surface-scale-paint.c2
-rw-r--r--test/surface-finish-twice.c2
-rw-r--r--test/surface-pattern.c2
-rw-r--r--test/text-antialias-gray.c2
-rw-r--r--test/text-antialias-none.c2
-rw-r--r--test/text-antialias-subpixel.c2
-rw-r--r--test/text-cache-crash.c2
-rw-r--r--test/text-pattern.c2
-rw-r--r--test/text-rotate.c2
-rw-r--r--test/transforms.c2
-rw-r--r--test/translate-show-surface.c2
-rw-r--r--test/trap-clip.c2
-rw-r--r--test/unantialiased-shapes.c2
-rw-r--r--test/unbounded-operator.c2
-rw-r--r--test/zero-alpha.c2
82 files changed, 162 insertions, 1 deletions
diff --git a/test/a8-mask.c b/test/a8-mask.c
index b619025b..e21b9df6 100644
--- a/test/a8-mask.c
+++ b/test/a8-mask.c
@@ -25,6 +25,8 @@
#include "cairo-test.h"
+static cairo_test_draw_function_t draw;
+
cairo_test_t test = {
"a8-mask",
"test masks of CAIRO_FORMAT_A8"
diff --git a/test/bitmap-font.c b/test/bitmap-font.c
index 3707a35a..bf8f109e 100644
--- a/test/bitmap-font.c
+++ b/test/bitmap-font.c
@@ -35,6 +35,8 @@
#define FONT "6x13.pcf"
#define TEXT_SIZE 13
+static cairo_test_draw_function_t draw;
+
cairo_test_t test = {
"bitmap-font",
"Test drawing with a font consisting only of bitmaps",
diff --git a/test/cairo-test.h b/test/cairo-test.h
index fbcbf29e..3694f35d 100644
--- a/test/cairo-test.h
+++ b/test/cairo-test.h
@@ -72,7 +72,6 @@ typedef enum cairo_test_status {
} cairo_test_status_t;
typedef cairo_test_status_t (cairo_test_draw_function_t) (cairo_t *cr, int width, int height);
-static cairo_test_draw_function_t draw;
typedef struct _cairo_test {
const char *name;
diff --git a/test/caps-joins-alpha.c b/test/caps-joins-alpha.c
index 969a9a53..cdf60861 100644
--- a/test/caps-joins-alpha.c
+++ b/test/caps-joins-alpha.c
@@ -30,6 +30,8 @@
#define SIZE (5 * LINE_WIDTH)
#define PAD (2 * LINE_WIDTH)
+static cairo_test_draw_function_t draw;
+
cairo_test_t test = {
"caps-joins-alpha",
"Test caps and joins with some source alpha",
diff --git a/test/caps-joins.c b/test/caps-joins.c
index 9b2055a9..c7306a01 100644
--- a/test/caps-joins.c
+++ b/test/caps-joins.c
@@ -29,6 +29,8 @@
#define SIZE (5 * LINE_WIDTH)
#define PAD (2 * LINE_WIDTH)
+static cairo_test_draw_function_t draw;
+
cairo_test_t test = {
"caps-joins",
"Test caps and joins",
diff --git a/test/caps-sub-paths.c b/test/caps-sub-paths.c
index c42c7cd0..73af8aa7 100644
--- a/test/caps-sub-paths.c
+++ b/test/caps-sub-paths.c
@@ -30,6 +30,8 @@
https://bugs.freedesktop.org/show_bug.cgi?id=4205
*/
+static cairo_test_draw_function_t draw;
+
cairo_test_t test = {
"caps-sub-paths",
"Test that sub-paths receive caps.",
diff --git a/test/clip-all.c b/test/clip-all.c
index 40460737..2ff883d5 100644
--- a/test/clip-all.c
+++ b/test/clip-all.c
@@ -28,6 +28,8 @@
#define SIZE 10
#define CLIP_SIZE 2
+static cairo_test_draw_function_t draw;
+
cairo_test_t test = {
"clip-all",
"Test clipping with everything clipped out",
diff --git a/test/clip-fill-rule-pixel-aligned.c b/test/clip-fill-rule-pixel-aligned.c
index 07b9efed..c2bb08b3 100644
--- a/test/clip-fill-rule-pixel-aligned.c
+++ b/test/clip-fill-rule-pixel-aligned.c
@@ -28,6 +28,8 @@
#define PAD 1
#define SIZE 5
+static cairo_test_draw_function_t draw;
+
cairo_test_t test = {
"clip-fill-rule-pixel-aligned",
"Tests interaction of clipping and cairo_set_fill_rule with a pixel-aligned path",
diff --git a/test/clip-fill-rule.c b/test/clip-fill-rule.c
index 84619d74..5012b3b1 100644
--- a/test/clip-fill-rule.c
+++ b/test/clip-fill-rule.c
@@ -27,6 +27,8 @@
#define STAR_SIZE 20
+static cairo_test_draw_function_t draw;
+
cairo_test_t test = {
"clip-fill-rule",
"Tests interaction of clipping with cairo_set_fill_rule",
diff --git a/test/clip-nesting.c b/test/clip-nesting.c
index 66c277b8..2d53782a 100644
--- a/test/clip-nesting.c
+++ b/test/clip-nesting.c
@@ -31,6 +31,8 @@
#define BORDER 10
#define LINE_WIDTH 20
+static cairo_test_draw_function_t draw;
+
cairo_test_t test = {
"clip-nesting",
"Test clipping with multiple contexts for the same surface",
diff --git a/test/clip-operator.c b/test/clip-operator.c
index 44ea6f46..52cbba61 100644
--- a/test/clip-operator.c
+++ b/test/clip-operator.c
@@ -130,6 +130,8 @@ static void (*draw_funcs[])(cairo_t *cr, int x, int y) = {
#define IMAGE_WIDTH (N_OPERATORS * (WIDTH + PAD) + PAD)
#define IMAGE_HEIGHT (ARRAY_SIZE (draw_funcs) * (HEIGHT + PAD) + PAD)
+static cairo_test_draw_function_t draw;
+
cairo_test_t test = {
"clip-operator",
"Surface clipping with different operators",
diff --git a/test/clip-twice.c b/test/clip-twice.c
index d6345812..71a3c148 100644
--- a/test/clip-twice.c
+++ b/test/clip-twice.c
@@ -28,6 +28,8 @@
#define WIDTH 64
#define HEIGHT 64
+static cairo_test_draw_function_t draw;
+
cairo_test_t test = {
"clip-twice",
"Verifies that the clip mask is updated correctly when it constructed by setting the clip path twice.",
diff --git a/test/composite-integer-translate-over-repeat.c b/test/composite-integer-translate-over-repeat.c
index 17eafa13..e0978ff2 100644
--- a/test/composite-integer-translate-over-repeat.c
+++ b/test/composite-integer-translate-over-repeat.c
@@ -6,6 +6,8 @@
#define SIZE2 20
#define OFFSET 10
+static cairo_test_draw_function_t draw;
+
cairo_test_t test = {
"composite-integer-translate-over-repeat",
"Test simple compositing: integer-translation 32->32 OVER, with repeat",
diff --git a/test/composite-integer-translate-over.c b/test/composite-integer-translate-over.c
index 84c7a04b..9c456210 100644
--- a/test/composite-integer-translate-over.c
+++ b/test/composite-integer-translate-over.c
@@ -7,6 +7,8 @@
#define SCALE 1.5
const char png_filename[] = "romedalen.png";
+static cairo_test_draw_function_t draw;
+
cairo_test_t test = {
"composite-integer-translate-over",
"Test simple compositing: integer-translation 32->32 OVER",
diff --git a/test/composite-integer-translate-source.c b/test/composite-integer-translate-source.c
index f2b80869..af0f5878 100644
--- a/test/composite-integer-translate-source.c
+++ b/test/composite-integer-translate-source.c
@@ -7,6 +7,8 @@
const char png_filename[] = "romedalen.png";
+static cairo_test_draw_function_t draw;
+
cairo_test_t test = {
"composite-integer-translate-source",
"Test simple compositing: integer-translation 32->32 SOURCE",
diff --git a/test/create-from-png-stream.c b/test/create-from-png-stream.c
index 2eaeb9f4..4e8a29d8 100644
--- a/test/create-from-png-stream.c
+++ b/test/create-from-png-stream.c
@@ -31,6 +31,8 @@
#define WIDTH 2
#define HEIGHT 2
+static cairo_test_draw_function_t draw;
+
cairo_test_t test = {
"create-from-png-stream",
"Tests the creation of an image surface from a PNG using a FILE *",
diff --git a/test/create-from-png.c b/test/create-from-png.c
index da03a119..4aefc34c 100644
--- a/test/create-from-png.c
+++ b/test/create-from-png.c
@@ -30,6 +30,8 @@
#define WIDTH 2
#define HEIGHT 2
+static cairo_test_draw_function_t draw;
+
cairo_test_t test = {
"create-from-png",
"Tests the creation of an image surface from a PNG file",
diff --git a/test/dash-caps-joins.c b/test/dash-caps-joins.c
index 4dd9868e..722a59d2 100644
--- a/test/dash-caps-joins.c
+++ b/test/dash-caps-joins.c
@@ -35,6 +35,8 @@
#define SIZE (5 * LINE_WIDTH)
#define PAD (2 * LINE_WIDTH)
+static cairo_test_draw_function_t draw;
+
cairo_test_t test = {
"dash-caps-joins",
"Test caps and joins when dashing",
diff --git a/test/dash-offset-negative.c b/test/dash-offset-negative.c
index a2d0269b..539e3cde 100644
--- a/test/dash-offset-negative.c
+++ b/test/dash-offset-negative.c
@@ -34,6 +34,8 @@
* https://bugs.freedesktop.org/show_bug.cgi?id=2729
*/
+static cairo_test_draw_function_t draw;
+
cairo_test_t test = {
"dash-offset-negative",
"Tests cairo_set_dash with a negative offset",
diff --git a/test/dash-scale.c b/test/dash-scale.c
index 36ac818b..b845dcf8 100644
--- a/test/dash-scale.c
+++ b/test/dash-scale.c
@@ -29,6 +29,8 @@
#define SIZE (5 * LINE_WIDTH)
#define PAD (2 * LINE_WIDTH)
+static cairo_test_draw_function_t draw;
+
cairo_test_t test = {
"dash-scale",
"Test interactions of cairo_set_dash and cairo_scale, (in particular with a non-uniformly scaled pen)",
diff --git a/test/dash-zero-length.c b/test/dash-zero-length.c
index 1c9361e2..6e9854ad 100644
--- a/test/dash-zero-length.c
+++ b/test/dash-zero-length.c
@@ -33,6 +33,8 @@
* on invisible lines.
*/
+static cairo_test_draw_function_t draw;
+
cairo_test_t test = {
"dash-zero-length",
"Tests cairo_set_dash with zero length",
diff --git a/test/degenerate-path.c b/test/degenerate-path.c
index c4272cc5..ab6a34d7 100644
--- a/test/degenerate-path.c
+++ b/test/degenerate-path.c
@@ -28,6 +28,8 @@
#define IMAGE_WIDTH 40
#define IMAGE_HEIGHT 22
+static cairo_test_draw_function_t draw;
+
cairo_test_t test = {
"degenerate-path",
"Tests the behaviour of degenerate paths with different cap types",
diff --git a/test/device-offset-positive.c b/test/device-offset-positive.c
index 3d4773d8..90806128 100644
--- a/test/device-offset-positive.c
+++ b/test/device-offset-positive.c
@@ -29,6 +29,8 @@
#define SIZE 10
#define PAD 2
+static cairo_test_draw_function_t draw;
+
cairo_test_t test = {
"device-offset-positive",
"Simple test using a surface with a positive device-offset as a source.",
diff --git a/test/device-offset.c b/test/device-offset.c
index 1b92c8a2..5f0eb80f 100644
--- a/test/device-offset.c
+++ b/test/device-offset.c
@@ -29,6 +29,8 @@
#define SIZE 10
#define PAD 2
+static cairo_test_draw_function_t draw;
+
cairo_test_t test = {
"device-offset",
"Simple test using a surface with a negative device-offset as a source.",
diff --git a/test/extend-reflect.c b/test/extend-reflect.c
index 1d53af9b..297c475f 100644
--- a/test/extend-reflect.c
+++ b/test/extend-reflect.c
@@ -6,6 +6,8 @@
#define OFFSET 50
const char png_filename[] = "romedalen.png";
+static cairo_test_draw_function_t draw;
+
cairo_test_t test = {
"extend-reflect",
"Test CAIRO_EXTEND_REFLECT for surface patterns"
diff --git a/test/fill-and-stroke-alpha-add.c b/test/fill-and-stroke-alpha-add.c
index 9b672d7c..0a3ebbc7 100644
--- a/test/fill-and-stroke-alpha-add.c
+++ b/test/fill-and-stroke-alpha-add.c
@@ -29,6 +29,8 @@
#define PAD 2
#define SIZE 10
+static cairo_test_draw_function_t draw;
+
cairo_test_t test = {
"fill-and-stroke-alpha-add",
"Use a group to fill/stroke a path (each with different alpha) using DEST_OUT and ADD to combine",
diff --git a/test/fill-and-stroke-alpha.c b/test/fill-and-stroke-alpha.c
index 170fafea..1d01151e 100644
--- a/test/fill-and-stroke-alpha.c
+++ b/test/fill-and-stroke-alpha.c
@@ -29,6 +29,8 @@
#define PAD 2
#define SIZE 10
+static cairo_test_draw_function_t draw;
+
cairo_test_t test = {
"fill-and-stroke-alpha",
"Use a group to fill/stroke a path then blend the result with alpha onto the destination",
diff --git a/test/fill-and-stroke.c b/test/fill-and-stroke.c
index 382e9f74..345b51d0 100644
--- a/test/fill-and-stroke.c
+++ b/test/fill-and-stroke.c
@@ -28,6 +28,8 @@
#define PAD 2
#define SIZE 10
+static cairo_test_draw_function_t draw;
+
cairo_test_t test = {
"fill-and-stroke",
"Tests using cairo_fill_preserve/cairo_stroke to fill/stroke the same path",
diff --git a/test/fill-rule.c b/test/fill-rule.c
index f31c70dc..6b186eff 100644
--- a/test/fill-rule.c
+++ b/test/fill-rule.c
@@ -66,6 +66,8 @@
#define LITTLE_STAR_SIZE 20
#define BIG_STAR_SIZE 80
+static cairo_test_draw_function_t draw;
+
cairo_test_t test = {
"fill-rule",
"Tests cairo_set_full_rule with some star shapes",
diff --git a/test/filter-nearest-offset.c b/test/filter-nearest-offset.c
index 01db5e8b..2727f56e 100644
--- a/test/filter-nearest-offset.c
+++ b/test/filter-nearest-offset.c
@@ -34,6 +34,8 @@
#define IMAGE_WIDTH (PAD + STEPS * (STAMP_WIDTH + PAD) + PAD)
#define IMAGE_HEIGHT (PAD + STEPS * (STAMP_HEIGHT + PAD) + PAD)
+static cairo_test_draw_function_t draw;
+
cairo_test_t test = {
"filter-nearest-offset",
"Test sampling offset of CAIRO_FILTER_NEAREST"
diff --git a/test/ft-font-create-for-ft-face.c b/test/ft-font-create-for-ft-face.c
index 196bacc5..64a32241 100644
--- a/test/ft-font-create-for-ft-face.c
+++ b/test/ft-font-create-for-ft-face.c
@@ -26,6 +26,8 @@
#include "cairo-test.h"
#include <cairo-ft.h>
+static cairo_test_draw_function_t draw;
+
cairo_test_t test = {
"ft-font-create-for-ft-face",
"Simple test to verify that cairo_ft_font_create_for_ft_face doesn't crash.",
diff --git a/test/ft-text-antialias-none.c b/test/ft-text-antialias-none.c
index 4294f28e..55a6fa3c 100644
--- a/test/ft-text-antialias-none.c
+++ b/test/ft-text-antialias-none.c
@@ -33,6 +33,8 @@
#define HEIGHT 30
#define TEXT_SIZE 12
+static cairo_test_draw_function_t draw;
+
cairo_test_t test = {
"ft-text-antialias-none",
"Tests text rendering with no antialiasing",
diff --git a/test/ft-text-vertical-layout.c b/test/ft-text-vertical-layout.c
index 3502b6c1..d7638eee 100644
--- a/test/ft-text-vertical-layout.c
+++ b/test/ft-text-vertical-layout.c
@@ -33,6 +33,8 @@
#define HEIGHT 30
#define TEXT_SIZE 12
+static cairo_test_draw_function_t draw;
+
cairo_test_t test = {
"ft-text-vertical-layout",
"Tests text rendering for vertical layout",
diff --git a/test/get-and-set.c b/test/get-and-set.c
index 5589b304..ae17cc89 100644
--- a/test/get-and-set.c
+++ b/test/get-and-set.c
@@ -25,6 +25,8 @@
#include "cairo-test.h"
+static cairo_test_draw_function_t draw;
+
cairo_test_t test = {
"get-and-set",
"Tests calls to the most trivial cairo_get and cairo_set functions",
diff --git a/test/get-group-target.c b/test/get-group-target.c
index 009087bd..73a2d951 100644
--- a/test/get-group-target.c
+++ b/test/get-group-target.c
@@ -28,6 +28,8 @@
#define SIZE 8
#define PAD 2
+static cairo_test_draw_function_t draw;
+
cairo_test_t test = {
"get-group-target",
"Test of both cairo_get_group_target and cairo_surface_get_device_offset",
diff --git a/test/glyph-cache-pressure.c b/test/glyph-cache-pressure.c
index 3661fa31..5b5e6c45 100644
--- a/test/glyph-cache-pressure.c
+++ b/test/glyph-cache-pressure.c
@@ -49,6 +49,8 @@
* _cairo_sacled_font_freeze/thaw_cache functions for this).
*/
+static cairo_test_draw_function_t draw;
+
cairo_test_t test = {
"glyph-cache-pressure",
"Ensure that all backends behave well under artificial glyph cache pressure",
diff --git a/test/gradient-alpha.c b/test/gradient-alpha.c
index 1ec15599..a56b5079 100644
--- a/test/gradient-alpha.c
+++ b/test/gradient-alpha.c
@@ -25,6 +25,8 @@
#include "cairo-test.h"
+static cairo_test_draw_function_t draw;
+
cairo_test_t test = {
"gradient-alpha",
"Tests drawing of a gradient with various alpha values in the color stops",
diff --git a/test/leaky-dash.c b/test/leaky-dash.c
index 961c6208..d78fac56 100644
--- a/test/leaky-dash.c
+++ b/test/leaky-dash.c
@@ -34,6 +34,8 @@
#define WIDTH 71
#define HEIGHT 28
+static cairo_test_draw_function_t draw;
+
cairo_test_t test = {
"leaky-dash",
"Exercises bug #4863 in which a dashed stroke leaks into half the rectangle being filled"
diff --git a/test/leaky-polygon.c b/test/leaky-polygon.c
index 69884e65..25268609 100644
--- a/test/leaky-polygon.c
+++ b/test/leaky-polygon.c
@@ -56,6 +56,8 @@
#define WIDTH 21
#define HEIGHT 21
+static cairo_test_draw_function_t draw;
+
cairo_test_t test = {
"leaky-polygon",
"Exercises a corner case in the trapezoid rasterization in which pixels outside the trapezoids received a non-zero alpha",
diff --git a/test/line-width-scale.c b/test/line-width-scale.c
index b06e982b..eada6c6b 100644
--- a/test/line-width-scale.c
+++ b/test/line-width-scale.c
@@ -52,6 +52,8 @@
#define WIDTH (XSCALE * SPLINE * 6.0)
#define HEIGHT (YSCALE * SPLINE * 2.0)
+static cairo_test_draw_function_t draw;
+
cairo_test_t test = {
"line-width-scale",
"Tests interaction of cairo_set_line_width with cairo_scale",
diff --git a/test/line-width.c b/test/line-width.c
index 6d112c99..ad51c74d 100644
--- a/test/line-width.c
+++ b/test/line-width.c
@@ -30,6 +30,8 @@
#define IMAGE_WIDTH 2 * LINE_LENGTH + 6
#define IMAGE_HEIGHT ((LINES+4)*LINES)/2 + 2
+static cairo_test_draw_function_t draw;
+
cairo_test_t test = {
"line-width",
"Tests cairo_set_line_width",
diff --git a/test/linear-gradient.c b/test/linear-gradient.c
index fd8da680..7681cbf0 100644
--- a/test/linear-gradient.c
+++ b/test/linear-gradient.c
@@ -54,6 +54,8 @@ static const int n_stops[] = { 2, 3 };
#define WIDTH N_GRADIENT_ANGLES * UNIT_SIZE + (N_GRADIENT_ANGLES + 1) * PAD
#define HEIGHT N_N_STOPS * N_ROTATE_ANGLES * UNIT_SIZE + (N_N_STOPS * N_ROTATE_ANGLES + 1) * PAD
+static cairo_test_draw_function_t draw;
+
cairo_test_t test = {
"linear-gradient",
"Tests the drawing of linear gradients",
diff --git a/test/mask-ctm.c b/test/mask-ctm.c
index 8c5d4bd6..d6939902 100644
--- a/test/mask-ctm.c
+++ b/test/mask-ctm.c
@@ -25,6 +25,8 @@
#include "cairo-test.h"
+static cairo_test_draw_function_t draw;
+
cairo_test_t test = {
"mask-ctm",
"Test that cairo_mask is affected properly by the CTM",
diff --git a/test/mask-surface-ctm.c b/test/mask-surface-ctm.c
index ea807f95..02384c6c 100644
--- a/test/mask-surface-ctm.c
+++ b/test/mask-surface-ctm.c
@@ -25,6 +25,8 @@
#include "cairo-test.h"
+static cairo_test_draw_function_t draw;
+
cairo_test_t test = {
"mask-surface-ctm",
"Test that cairo_mask_surface is affected properly by the CTM",
diff --git a/test/mask.c b/test/mask.c
index faaecd62..ed328199 100644
--- a/test/mask.c
+++ b/test/mask.c
@@ -179,6 +179,8 @@ static void (*clip_funcs[])(cairo_t *cr, int x, int y) = {
#define IMAGE_WIDTH (ARRAY_SIZE (pattern_funcs) * (WIDTH + PAD) + PAD)
#define IMAGE_HEIGHT (ARRAY_SIZE (mask_funcs) * ARRAY_SIZE (clip_funcs) * (HEIGHT + PAD) + PAD)
+static cairo_test_draw_function_t draw;
+
cairo_test_t test = {
"mask",
"Tests of cairo_mask",
diff --git a/test/move-to-show-surface.c b/test/move-to-show-surface.c
index 2b5cc401..86932078 100644
--- a/test/move-to-show-surface.c
+++ b/test/move-to-show-surface.c
@@ -45,6 +45,8 @@
#include "cairo-test.h"
+static cairo_test_draw_function_t draw;
+
cairo_test_t test = {
"move-to-show-surface",
"Tests calls to cairo_show_surface after cairo_move_to",
diff --git a/test/new-sub-path.c b/test/new-sub-path.c
index bff3a763..93580ceb 100644
--- a/test/new-sub-path.c
+++ b/test/new-sub-path.c
@@ -27,6 +27,8 @@
#define SIZE 10
+static cairo_test_draw_function_t draw;
+
cairo_test_t test = {
"new-sub-path",
"Test the cairo_new_sub_path call",
diff --git a/test/nil-surface.c b/test/nil-surface.c
index 5819cb0b..80cb290c 100644
--- a/test/nil-surface.c
+++ b/test/nil-surface.c
@@ -32,6 +32,8 @@
* https://bugs.freedesktop.org/show_bug.cgi?id=3915
*/
+static cairo_test_draw_function_t draw;
+
cairo_test_t test = {
"nil-surface",
"Test that nil surfaces do not make cairo crash.",
diff --git a/test/operator-clear.c b/test/operator-clear.c
index 89fdd3e9..575ce1d0 100644
--- a/test/operator-clear.c
+++ b/test/operator-clear.c
@@ -146,6 +146,8 @@ static void (*draw_funcs[])(cairo_t *cr, int x, int y) = {
#define IMAGE_WIDTH (ARRAY_SIZE (pattern_funcs) * (WIDTH + PAD) + PAD)
#define IMAGE_HEIGHT (ARRAY_SIZE (draw_funcs) * (HEIGHT + PAD) + PAD)
+static cairo_test_draw_function_t draw;
+
cairo_test_t test = {
"operator-clear",
"Test of CAIRO_OPERATOR_CLEAR",
diff --git a/test/operator-source.c b/test/operator-source.c
index 17c04572..6784622e 100644
--- a/test/operator-source.c
+++ b/test/operator-source.c
@@ -185,6 +185,8 @@ static void (*draw_funcs[])(cairo_t *cr, int x, int y) = {
#define IMAGE_WIDTH (ARRAY_SIZE (pattern_funcs) * (WIDTH + PAD) + PAD)
#define IMAGE_HEIGHT (ARRAY_SIZE (draw_funcs) * (HEIGHT + PAD) + PAD)
+static cairo_test_draw_function_t draw;
+
cairo_test_t test = {
"operator-source",
"Test of CAIRO_OPERATOR_SOURCE",
diff --git a/test/paint-source-alpha.c b/test/paint-source-alpha.c
index afef3331..36a158b8 100644
--- a/test/paint-source-alpha.c
+++ b/test/paint-source-alpha.c
@@ -26,6 +26,8 @@
#include "cairo-test.h"
+static cairo_test_draw_function_t draw;
+
cairo_test_t test = {
"paint-source-alpha",
"Simple test of cairo_paint with a source surface with non-opaque alpha",
diff --git a/test/paint-with-alpha.c b/test/paint-with-alpha.c
index 81e2138a..864b9567 100644
--- a/test/paint-with-alpha.c
+++ b/test/paint-with-alpha.c
@@ -26,6 +26,8 @@
#include "cairo-test.h"
+static cairo_test_draw_function_t draw;
+
cairo_test_t test = {
"paint-with-alpha",
"Simple test of cairo_paint_with_alpha",
diff --git a/test/paint.c b/test/paint.c
index e76a5451..0149db68 100644
--- a/test/paint.c
+++ b/test/paint.c
@@ -25,6 +25,8 @@
#include "cairo-test.h"
+static cairo_test_draw_function_t draw;
+
cairo_test_t test = {
"paint",
"Test calls to cairo_paint",
diff --git a/test/path-data.c b/test/path-data.c
index 9868205d..903e92c6 100644
--- a/test/path-data.c
+++ b/test/path-data.c
@@ -26,6 +26,8 @@
#include <stdlib.h>
#include "cairo-test.h"
+static cairo_test_draw_function_t draw;
+
cairo_test_t test = {
"path-data",
"Tests calls to path_data functions: cairo_copy_path_data, cairo_copy_path_data_flat, and cairo_append_path_data",
diff --git a/test/pixman-rotate.c b/test/pixman-rotate.c
index e02d9182..425f883a 100644
--- a/test/pixman-rotate.c
+++ b/test/pixman-rotate.c
@@ -13,6 +13,8 @@
#define IMAGE_WIDTH (3 * WIDTH)
#define IMAGE_HEIGHT IMAGE_WIDTH
+static cairo_test_draw_function_t draw;
+
cairo_test_t test = {
"pixman-rotate",
"Exposes pixman off-by-one error when rotating",
diff --git a/test/push-group.c b/test/push-group.c
index f7777866..738df6f1 100644
--- a/test/push-group.c
+++ b/test/push-group.c
@@ -32,6 +32,8 @@
#define WIDTH (UNIT_SIZE + PAD) + PAD
#define HEIGHT (UNIT_SIZE + PAD) + PAD
+static cairo_test_draw_function_t draw;
+
cairo_test_t test = {
"push-group",
"Verify that cairo_push_group works.",
diff --git a/test/rectangle-rounding-error.c b/test/rectangle-rounding-error.c
index 4d0d35eb..2cfbe9c9 100644
--- a/test/rectangle-rounding-error.c
+++ b/test/rectangle-rounding-error.c
@@ -30,6 +30,8 @@
* https://bugs.freedesktop.org/show_bug.cgi?id=4137
*/
+static cairo_test_draw_function_t draw;
+
cairo_test_t test = {
"rectangle-rounding-error",
"This demonstrates (or not) a rounding error that causes a gap between "
diff --git a/test/rel-path.c b/test/rel-path.c
index d82e62a6..165c10e8 100644
--- a/test/rel-path.c
+++ b/test/rel-path.c
@@ -26,6 +26,8 @@
#define SIZE 10
+static cairo_test_draw_function_t draw;
+
cairo_test_t test = {
"rel-path",
"Tests calls to various relative path functions",
diff --git a/test/scale-source-surface-paint.c b/test/scale-source-surface-paint.c
index d98b260a..1fbe0c42 100644
--- a/test/scale-source-surface-paint.c
+++ b/test/scale-source-surface-paint.c
@@ -25,6 +25,8 @@
#include "cairo-test.h"
+static cairo_test_draw_function_t draw;
+
cairo_test_t test = {
"scale-source-surface-paint",
"Test call sequence: cairo_scale; cairo_set_source_surface; cairo_paint",
diff --git a/test/select-font-face.c b/test/select-font-face.c
index 20ade007..30daf25d 100644
--- a/test/select-font-face.c
+++ b/test/select-font-face.c
@@ -27,6 +27,8 @@
#define TEXT_SIZE 12
+static cairo_test_draw_function_t draw;
+
cairo_test_t test = {
"select-font-face",
"Tests using cairo_select_font_face to draw text in different faces",
diff --git a/test/select-font-no-show-text.c b/test/select-font-no-show-text.c
index 74bc1e9e..c0e4f46a 100644
--- a/test/select-font-no-show-text.c
+++ b/test/select-font-no-show-text.c
@@ -41,6 +41,8 @@
#include <math.h>
#include "cairo-test.h"
+static cairo_test_draw_function_t draw;
+
cairo_test_t test = {
"select-font-no-show-text",
"Test calling cairo_select_font_face but never drawing text.",
diff --git a/test/self-copy.c b/test/self-copy.c
index c872f7f8..0c238555 100644
--- a/test/self-copy.c
+++ b/test/self-copy.c
@@ -29,6 +29,8 @@
#define SIZE 40
+static cairo_test_draw_function_t draw;
+
cairo_test_t test = {
"self-copy",
"Test copying from a surface to itself with a clip",
diff --git a/test/self-intersecting.c b/test/self-intersecting.c
index 77547cb4..870783e6 100644
--- a/test/self-intersecting.c
+++ b/test/self-intersecting.c
@@ -44,6 +44,8 @@
#include "cairo-test.h"
+static cairo_test_draw_function_t draw;
+
cairo_test_t test = {
"self-intersecting",
"Test strokes of self-intersecting paths"
diff --git a/test/set-source.c b/test/set-source.c
index 87953b6a..77378973 100644
--- a/test/set-source.c
+++ b/test/set-source.c
@@ -25,6 +25,8 @@
#include "cairo-test.h"
+static cairo_test_draw_function_t draw;
+
cairo_test_t test = {
"set-source",
"Tests calls to various set_source functions",
diff --git a/test/show-glyphs-many.c b/test/show-glyphs-many.c
index 95cca92f..f9137e6c 100644
--- a/test/show-glyphs-many.c
+++ b/test/show-glyphs-many.c
@@ -78,6 +78,8 @@
* Sans Mono. */
#define GLYPH_INDEX 48
+static cairo_test_draw_function_t draw;
+
cairo_test_t test = {
"show-glyphs-many",
"Test that cairo_show_glyps works when handed 'many' glyphs",
diff --git a/test/show-text-current-point.c b/test/show-text-current-point.c
index d551ea42..ebd36445 100644
--- a/test/show-text-current-point.c
+++ b/test/show-text-current-point.c
@@ -27,6 +27,8 @@
#define TEXT_SIZE 12
+static cairo_test_draw_function_t draw;
+
cairo_test_t test = {
"show-text-current-point",
"Test that cairo_show_text adjusts the current point properly",
diff --git a/test/source-clip.c b/test/source-clip.c
index e8f6dea9..4243bf0c 100644
--- a/test/source-clip.c
+++ b/test/source-clip.c
@@ -29,6 +29,8 @@
#define SIZE 50
+static cairo_test_draw_function_t draw;
+
cairo_test_t test = {
"source-clip",
"Test using a surface with an active clip as a source",
diff --git a/test/source-surface-scale-paint.c b/test/source-surface-scale-paint.c
index f1da8c53..8c3096a8 100644
--- a/test/source-surface-scale-paint.c
+++ b/test/source-surface-scale-paint.c
@@ -25,6 +25,8 @@
#include "cairo-test.h"
+static cairo_test_draw_function_t draw;
+
cairo_test_t test = {
"source-surface-scale-paint",
"Test call sequence: cairo_set_source_surface; cairo_scale; cairo_paint",
diff --git a/test/surface-finish-twice.c b/test/surface-finish-twice.c
index 9a6a0285..62acf714 100644
--- a/test/surface-finish-twice.c
+++ b/test/surface-finish-twice.c
@@ -42,6 +42,8 @@
#include "cairo-test.h"
+static cairo_test_draw_function_t draw;
+
cairo_test_t test = {
"surface-finish-twice",
"Test to exercise a crash when calling cairo_surface_finish twice on the same surface.",
diff --git a/test/surface-pattern.c b/test/surface-pattern.c
index 3124d76e..8fe40e66 100644
--- a/test/surface-pattern.c
+++ b/test/surface-pattern.c
@@ -25,6 +25,8 @@
#include "cairo-test.h"
+static cairo_test_draw_function_t draw;
+
cairo_test_t test = {
"surface-pattern",
"Tests use of a surface pattern",
diff --git a/test/text-antialias-gray.c b/test/text-antialias-gray.c
index 1a044ebc..0c9f30dd 100644
--- a/test/text-antialias-gray.c
+++ b/test/text-antialias-gray.c
@@ -29,6 +29,8 @@
#define HEIGHT 22
#define TEXT_SIZE 12
+static cairo_test_draw_function_t draw;
+
cairo_test_t test = {
"text-antialias-gray",
"Tests text rendering with grayscale antialiasing",
diff --git a/test/text-antialias-none.c b/test/text-antialias-none.c
index 4d9d6560..32f7a0ed 100644
--- a/test/text-antialias-none.c
+++ b/test/text-antialias-none.c
@@ -29,6 +29,8 @@
#define HEIGHT 22
#define TEXT_SIZE 12
+static cairo_test_draw_function_t draw;
+
cairo_test_t test = {
"text-antialias-none",
"Tests text rendering with no antialiasing",
diff --git a/test/text-antialias-subpixel.c b/test/text-antialias-subpixel.c
index b78007c2..aba98908 100644
--- a/test/text-antialias-subpixel.c
+++ b/test/text-antialias-subpixel.c
@@ -29,6 +29,8 @@
#define HEIGHT 22
#define TEXT_SIZE 12
+static cairo_test_draw_function_t draw;
+
cairo_test_t test = {
"text-antialias-subpixel",
"Tests text rendering with subpixel antialiasing",
diff --git a/test/text-cache-crash.c b/test/text-cache-crash.c
index 2b78813f..00b3b293 100644
--- a/test/text-cache-crash.c
+++ b/test/text-cache-crash.c
@@ -62,6 +62,8 @@
#include "cairo-test.h"
+static cairo_test_draw_function_t draw;
+
cairo_test_t test = {
"text-cache-crash",
"Test case for bug causing an assertion failure in _cairo_cache_lookup",
diff --git a/test/text-pattern.c b/test/text-pattern.c
index 7c6c7e72..40a2a454 100644
--- a/test/text-pattern.c
+++ b/test/text-pattern.c
@@ -28,6 +28,8 @@
#define IMAGE_WIDTH 64
#define IMAGE_HEIGHT 64
+static cairo_test_draw_function_t draw;
+
cairo_test_t test = {
"text-pattern",
"Patterned Text",
diff --git a/test/text-rotate.c b/test/text-rotate.c
index 39e868a6..abc6baa5 100644
--- a/test/text-rotate.c
+++ b/test/text-rotate.c
@@ -84,6 +84,8 @@
#define NUM_TEXT 20
#define TEXT_SIZE 12
+static cairo_test_draw_function_t draw;
+
cairo_test_t test = {
"text-rotate",
"Tests show_text under various rotations"
diff --git a/test/transforms.c b/test/transforms.c
index c0d0c346..97b8fe85 100644
--- a/test/transforms.c
+++ b/test/transforms.c
@@ -28,6 +28,8 @@
#define WIDTH 45
#define HEIGHT 30
+static cairo_test_draw_function_t draw;
+
cairo_test_t test = {
"transforms",
"Test various transformations.",
diff --git a/test/translate-show-surface.c b/test/translate-show-surface.c
index 574a419f..a505f369 100644
--- a/test/translate-show-surface.c
+++ b/test/translate-show-surface.c
@@ -43,6 +43,8 @@
#include "cairo-test.h"
+static cairo_test_draw_function_t draw;
+
cairo_test_t test = {
"translate-show-surface",
"Tests calls to cairo_show_surface after cairo_translate",
diff --git a/test/trap-clip.c b/test/trap-clip.c
index 3adeb344..a1483de0 100644
--- a/test/trap-clip.c
+++ b/test/trap-clip.c
@@ -164,6 +164,8 @@ static void (*clip_funcs[])(cairo_t *cr, int x, int y) = {
#define IMAGE_WIDTH (ARRAY_SIZE (pattern_funcs) * (WIDTH + PAD) + PAD)
#define IMAGE_HEIGHT (ARRAY_SIZE (draw_funcs) * ARRAY_SIZE (clip_funcs) * (HEIGHT + PAD) + PAD)
+static cairo_test_draw_function_t draw;
+
cairo_test_t test = {
"trap-clip",
"Trapezoid clipping",
diff --git a/test/unantialiased-shapes.c b/test/unantialiased-shapes.c
index b6799970..2ca4ee82 100644
--- a/test/unantialiased-shapes.c
+++ b/test/unantialiased-shapes.c
@@ -25,6 +25,8 @@
#include "cairo-test.h"
+static cairo_test_draw_function_t draw;
+
cairo_test_t test = {
"unantialiased-shapes",
"Test shape drawing without antialiasing",
diff --git a/test/unbounded-operator.c b/test/unbounded-operator.c
index 1b14268e..70dab83f 100644
--- a/test/unbounded-operator.c
+++ b/test/unbounded-operator.c
@@ -132,6 +132,8 @@ static cairo_operator_t operators[] = {
#define IMAGE_WIDTH (ARRAY_SIZE (operators) * (WIDTH + PAD) + PAD)
#define IMAGE_HEIGHT (ARRAY_SIZE (draw_funcs) * (HEIGHT + PAD) + PAD)
+static cairo_test_draw_function_t draw;
+
cairo_test_t test = {
"unbounded-operator",
"Operators with an effect for transparent source/mask",
diff --git a/test/zero-alpha.c b/test/zero-alpha.c
index c67c382d..833e24c9 100644
--- a/test/zero-alpha.c
+++ b/test/zero-alpha.c
@@ -42,6 +42,8 @@
* 2006-06-13 Paul Giblock reports that this only happens with the
* xlib backend, and then only on some systems.
*/
+static cairo_test_draw_function_t draw;
+
cairo_test_t test = {
"zero-alpha",
"Testing that drawing with zero alpha has no effect",