summaryrefslogtreecommitdiff
path: root/test/create-from-png.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2008-10-31 13:50:55 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2008-10-31 13:50:55 +0000
commit992f74d884c9ea83f7b51c6959dd93718027b99a (patch)
tree1c9407f9583f67a319b01da2f1bfcb05136c5a57 /test/create-from-png.c
parente90073f7ddc6f461a935bc360c409b04f1fe9f74 (diff)
[test] Use '.' as the field separator in the names
We frequently use '-' within the test name or format name and so we encounter confusion as '-' is also used as the field separator. At times this has caused a new test to break an old test because the new test would match one of the old test's target specific reference images. So switch everything over to use '.' between fields (test name, target, format, subtest, etc.).
Diffstat (limited to 'test/create-from-png.c')
-rw-r--r--test/create-from-png.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/create-from-png.c b/test/create-from-png.c
index 647ef139..d9d2e548 100644
--- a/test/create-from-png.c
+++ b/test/create-from-png.c
@@ -50,7 +50,7 @@ draw (cairo_t *cr, int width, int height)
cairo_surface_t *surface;
xasprintf (&filename, "%s/%s", ctx->srcdir,
- "create-from-png-ref.png");
+ "create-from-png.ref.png");
surface = cairo_image_surface_create_from_png (filename);
if (cairo_surface_status (surface)) {
@@ -105,7 +105,7 @@ preamble (cairo_test_context_t *ctx)
/* cheekily test error propagation from the user write funcs as well ... */
xasprintf (&filename, "%s/%s", ctx->srcdir,
- "create-from-png-ref.png");
+ "create-from-png.ref.png");
surface = cairo_image_surface_create_from_png (filename);
if (cairo_surface_status (surface)) {
@@ -144,7 +144,7 @@ preamble (cairo_test_context_t *ctx)
/* check that loading alpha/opaque PNGs generate the correct surfaces */
xasprintf (&filename, "%s/%s", ctx->srcdir,
- "create-from-png-alpha-ref.png");
+ "create-from-png.alpha.ref.png");
surface = cairo_image_surface_create_from_png (filename);
if (cairo_surface_status (surface)) {
cairo_test_log (ctx, "Error reading PNG image %s: %s\n",
@@ -160,7 +160,7 @@ preamble (cairo_test_context_t *ctx)
cairo_surface_destroy (surface);
xasprintf (&filename, "%s/%s", ctx->srcdir,
- "create-from-png-ref.png");
+ "create-from-png.ref.png");
surface = cairo_image_surface_create_from_png (filename);
if (cairo_surface_status (surface)) {
cairo_test_log (ctx, "Error reading PNG image %s: %s\n",
@@ -177,7 +177,7 @@ preamble (cairo_test_context_t *ctx)
/* check paletted PNGs */
xasprintf (&filename, "%s/%s", ctx->srcdir,
- "create-from-png-indexed-alpha-ref.png");
+ "create-from-png.indexed-alpha.ref.png");
surface = cairo_image_surface_create_from_png (filename);
if (cairo_surface_status (surface)) {
cairo_test_log (ctx, "Error reading PNG image %s: %s\n",
@@ -193,7 +193,7 @@ preamble (cairo_test_context_t *ctx)
cairo_surface_destroy (surface);
xasprintf (&filename, "%s/%s", ctx->srcdir,
- "create-from-png-indexed-ref.png");
+ "create-from-png.indexed.ref.png");
surface = cairo_image_surface_create_from_png (filename);
if (cairo_surface_status (surface)) {
cairo_test_log (ctx, "Error reading PNG image %s: %s\n",
@@ -210,7 +210,7 @@ preamble (cairo_test_context_t *ctx)
/* check grayscale PNGs */
xasprintf (&filename, "%s/%s", ctx->srcdir,
- "create-from-png-gray-alpha-ref.png");
+ "create-from-png.gray-alpha.ref.png");
surface = cairo_image_surface_create_from_png (filename);
if (cairo_surface_status (surface)) {
cairo_test_log (ctx, "Error reading PNG image %s: %s\n",
@@ -226,7 +226,7 @@ preamble (cairo_test_context_t *ctx)
cairo_surface_destroy (surface);
xasprintf (&filename, "%s/%s", ctx->srcdir,
- "create-from-png-gray-ref.png");
+ "create-from-png.gray.ref.png");
surface = cairo_image_surface_create_from_png (filename);
if (cairo_surface_status (surface)) {
cairo_test_log (ctx, "Error reading PNG image %s: %s\n",