mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 05:18:01 +02:00
Fix to find reference images in local directory when run directly, (rather than by "make check").
This commit is contained in:
parent
5c33c78c8c
commit
a827069cc5
3 changed files with 5 additions and 2 deletions
|
|
@ -1,5 +1,8 @@
|
|||
2004-12-17 Carl Worth <cworth@cworth.org>
|
||||
|
||||
* test/cairo_test.c (cairo_test): Fix to find reference images in
|
||||
local directory when run directly, (rather than by "make check").
|
||||
|
||||
* BUGS: Add bug about invalidating font caches.
|
||||
|
||||
2004-12-02 David Reveman <c99drn@cs.umu.se>
|
||||
|
|
|
|||
|
|
@ -137,7 +137,7 @@ cairo_test (cairo_test_t *test, cairo_test_draw_function_t draw)
|
|||
/* Then we've got a bunch of string manipulation and file I/O for the check */
|
||||
srcdir = getenv ("srcdir");
|
||||
if (!srcdir)
|
||||
srcdir = "";
|
||||
srcdir = ".";
|
||||
xasprintf (&png_name, "%s%s", test->name, CAIRO_TEST_PNG_SUFFIX);
|
||||
xasprintf (&ref_name, "%s/%s%s", srcdir, test->name, CAIRO_TEST_REF_SUFFIX);
|
||||
xasprintf (&diff_name, "%s%s", test->name, CAIRO_TEST_DIFF_SUFFIX);
|
||||
|
|
|
|||
|
|
@ -137,7 +137,7 @@ cairo_test (cairo_test_t *test, cairo_test_draw_function_t draw)
|
|||
/* Then we've got a bunch of string manipulation and file I/O for the check */
|
||||
srcdir = getenv ("srcdir");
|
||||
if (!srcdir)
|
||||
srcdir = "";
|
||||
srcdir = ".";
|
||||
xasprintf (&png_name, "%s%s", test->name, CAIRO_TEST_PNG_SUFFIX);
|
||||
xasprintf (&ref_name, "%s/%s%s", srcdir, test->name, CAIRO_TEST_REF_SUFFIX);
|
||||
xasprintf (&diff_name, "%s%s", test->name, CAIRO_TEST_DIFF_SUFFIX);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue