summaryrefslogtreecommitdiff
path: root/test/cairo_test.c
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@redhat.com>2005-03-10 09:22:20 +0000
committerKristian Høgsberg <krh@redhat.com>2005-03-10 09:22:20 +0000
commitb032d02322a656a3cfc02d0ea788680c12689d1f (patch)
tree0cd2084a12c4b53966f3437fe97455dd755d6b48 /test/cairo_test.c
parent05a7c69c904119ee08df40b8e3f7154614fcbf8e (diff)
Fix assert()'s using = instead of ==.
Move xunlink call below the xasprintf that builds the filename to unlink.
Diffstat (limited to 'test/cairo_test.c')
-rw-r--r--test/cairo_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/cairo_test.c b/test/cairo_test.c
index 0c3ae8fe9..7e468b0bf 100644
--- a/test/cairo_test.c
+++ b/test/cairo_test.c
@@ -111,8 +111,6 @@ cairo_test (cairo_test_t *test, cairo_test_draw_function_t draw)
FILE *png_file;
FILE *log_file;
- xunlink (log_name);
-
/* Get the strings ready that we'll need. */
srcdir = getenv ("srcdir");
if (!srcdir)
@@ -122,6 +120,8 @@ cairo_test (cairo_test_t *test, cairo_test_draw_function_t draw)
xasprintf (&ref_name, "%s/%s%s", srcdir, test->name, CAIRO_TEST_REF_SUFFIX);
xasprintf (&diff_name, "%s%s", test->name, CAIRO_TEST_DIFF_SUFFIX);
+ xunlink (log_name);
+
/* Run the actual drawing code. */
cr = cairo_create ();