diff options
author | Andrea Canciani <ranma42@gmail.com> | 2011-11-01 18:03:40 +0100 |
---|---|---|
committer | Andrea Canciani <ranma42@gmail.com> | 2011-11-13 16:43:29 +0100 |
commit | a6a4e0ec821d1a4c61487908f5d1bd2c5ffd289e (patch) | |
tree | 536619ba4f15b3dd9150512c64606852c097840e | |
parent | f203c9fd2dbc53483af46fcea03970022dd452dd (diff) |
test: Compare content of files of the same typewip/test-nocrash
Comparing a PNG image file with a backend-specific output file
(.ps/.pdf/.svg/...) is not supposed to ever result in a match. The
code was (presumably) intended to permit having non-PNG references for
vector file backends.
-rw-r--r-- | test/cairo-test.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/cairo-test.c b/test/cairo-test.c index 9e0341b35..596fa1f51 100644 --- a/test/cairo-test.c +++ b/test/cairo-test.c @@ -1086,19 +1086,19 @@ REPEAT: _xunlink (ctx, fail_filename); } - if (cairo_test_files_equal (out_png_path, ref_path)) { + if (cairo_test_files_equal (test_filename, ref_path)) { cairo_test_log (ctx, "Vector surface matches reference.\n"); have_output = FALSE; ret = CAIRO_TEST_SUCCESS; goto UNWIND_CAIRO; } - if (cairo_test_files_equal (out_png_path, new_path)) { + if (cairo_test_files_equal (test_filename, new_path)) { cairo_test_log (ctx, "Vector surface matches current failure.\n"); have_output = FALSE; ret = CAIRO_TEST_NEW; goto UNWIND_CAIRO; } - if (cairo_test_files_equal (out_png_path, xfail_path)) { + if (cairo_test_files_equal (test_filename, xfail_path)) { cairo_test_log (ctx, "Vector surface matches known failure.\n"); have_output = FALSE; ret = CAIRO_TEST_XFAILURE; |