[cairo-commit]
cairo/test cairo_test.c, 1.12, 1.13 user_data.c, 1.1, 1.2
Kristian Hogsberg
commit at pdx.freedesktop.org
Thu Mar 10 09:22:22 PST 2005
Committed by: krh
Update of /cvs/cairo/cairo/test
In directory gabe:/tmp/cvs-serv32607/test
Modified Files:
cairo_test.c user_data.c
Log Message:
2005-03-10 Kristian Høgsberg <krh at redhat.com>
* test/user_data.c (main): Fix assert()'s using = instead of ==.
* test/cairo_test.c (cairo_test): Move xunlink call below the
xasprintf that builds the filename to unlink.
Index: cairo_test.c
===================================================================
RCS file: /cvs/cairo/cairo/test/cairo_test.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- cairo_test.c 9 Mar 2005 22:34:26 -0000 1.12
+++ cairo_test.c 10 Mar 2005 17:22:20 -0000 1.13
@@ -111,8 +111,6 @@
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 @@
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 ();
Index: user_data.c
===================================================================
RCS file: /cvs/cairo/cairo/test/user_data.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- user_data.c 10 Mar 2005 16:59:11 -0000 1.1
+++ user_data.c 10 Mar 2005 17:22:20 -0000 1.2
@@ -63,8 +63,8 @@
assert (cairo_surface_set_user_data (surface, &key1, &data1, destroy_data1)
== CAIRO_STATUS_SUCCESS);
cairo_surface_destroy (surface);
- assert (data1 = 1);
- assert (data2 = 2);
+ assert (data1 == 1);
+ assert (data2 == 2);
return 0;
}
More information about the cairo-commit
mailing list