Fix to find reference images in local directory when run directly, (rather than by "make check").

This commit is contained in:
Carl Worth 2004-12-17 13:23:32 +00:00
parent 5c33c78c8c
commit a827069cc5
3 changed files with 5 additions and 2 deletions

View file

@ -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>

View file

@ -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);

View file

@ -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);