[cairo-commit] cairo/test cairo_test.c,1.3,1.4
Carl Worth
commit at pdx.freedesktop.org
Fri Dec 17 13:23:36 PST 2004
Committed by: cworth
Update of /cvs/cairo/cairo/test
In directory gabe:/tmp/cvs-serv30028/test
Modified Files:
cairo_test.c
Log Message:
* test/cairo_test.c (cairo_test): Fix to find reference images in
local directory when run directly, (rather than by "make check").
Index: cairo_test.c
===================================================================
RCS file: /cvs/cairo/cairo/test/cairo_test.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- cairo_test.c 23 Nov 2004 20:53:46 -0000 1.3
+++ cairo_test.c 17 Dec 2004 21:23:34 -0000 1.4
@@ -137,7 +137,7 @@
/* 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);
More information about the cairo-commit
mailing list