summaryrefslogtreecommitdiff
path: root/test/fallback-resolution.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/fallback-resolution.c
parente90073f7ddc6f461a935bc360c409b04f1fe9f74 (diff)
downloadcairo-992f74d884c9ea83f7b51c6959dd93718027b99a.tar.gz
[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/fallback-resolution.c')
-rw-r--r--test/fallback-resolution.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/test/fallback-resolution.c b/test/fallback-resolution.c
index ab6a0edec..c8b994498 100644
--- a/test/fallback-resolution.c
+++ b/test/fallback-resolution.c
@@ -165,8 +165,8 @@ check_result (cairo_test_context_t *ctx,
}
}
- xasprintf (&png_name, "%s-out.png", base_name);
- xasprintf (&diff_name, "%s-diff.png", base_name);
+ xasprintf (&png_name, "%s.out.png", base_name);
+ xasprintf (&diff_name, "%s.diff.png", base_name);
test_image = target->get_image_surface (surface, 0, SIZE, SIZE);
if (cairo_surface_status (test_image)) {
@@ -194,6 +194,7 @@ check_result (cairo_test_context_t *ctx,
base_name,
test_name,
target->name,
+ target->basename,
format);
if (ref_name == NULL) {
cairo_test_log (ctx, "Error: Cannot find reference image for %s\n",
@@ -310,7 +311,7 @@ preamble (cairo_test_context_t *ctx)
for (ppi_x = 0; ppi_x < num_ppi; ppi_x++) {
for (ppi_y = 0; ppi_y < num_ppi; ppi_y++) {
char *ref_name;
- xasprintf (&ref_name, "fallback-resolution-ppi%gx%g-ref.png",
+ xasprintf (&ref_name, "fallback-resolution.ppi%gx%g.ref.png",
ppi[ppi_x], ppi[ppi_y]);
generate_reference (ppi[ppi_x], ppi[ppi_y], ref_name);
free (ref_name);
@@ -330,7 +331,7 @@ preamble (cairo_test_context_t *ctx)
continue;
format = cairo_boilerplate_content_name (target->content);
- xasprintf (&base_name, "fallback-resolution-%s-%s",
+ xasprintf (&base_name, "fallback-resolution.%s-%s",
target->name,
format);
@@ -363,7 +364,7 @@ preamble (cairo_test_context_t *ctx)
char *test_name;
cairo_bool_t pass;
- xasprintf (&test_name, "fallback-resolution-ppi%gx%g",
+ xasprintf (&test_name, "fallback-resolution.ppi%gx%g",
ppi[ppi_x], ppi[ppi_y]);
xasprintf (&base_name, "%s-%s-%s",
test_name,