[cairo-commit] cairo/test cairo-test.c, 1.56, 1.57 create-from-png-stream.c, 1.1, 1.2 nil-surface.c, 1.2, 1.3

Owen Taylor commit at pdx.freedesktop.org
Wed Aug 31 19:11:25 PDT 2005


Committed by: otaylor

Update of /cvs/cairo/cairo/test
In directory gabe:/tmp/cvs-serv2034/test

Modified Files:
	cairo-test.c create-from-png-stream.c nil-surface.c 
Log Message:
2005-08-31  Carl Worth  <cworth at cworth.org>

	* test/cairo-test.c: (create_xlib_surface): Add call to
	XSynchronize, (the expected clip-all failure isn't occuring
	without it for some reason).
	
	* test/clip-all.c: (main): Note reason for expected failure.

2005-08-31  Owen Taylor  <otaylor at redhat.com>

	* src/cairoint.h (_cairo_scaled_font_backend)
	src/cairo-scaled-font.c: Add an optional text_to_glyphs() virtual
	function that the backend can implement instead of
	ucs4_to_index().

	* test/cairo-test.c: Protect inclusion of fontconfig.h
	with HAVE_FCFINI.

Index: cairo-test.c
===================================================================
RCS file: /cvs/cairo/cairo/test/cairo-test.c,v
retrieving revision 1.56
retrieving revision 1.57
diff -u -d -r1.56 -r1.57
--- cairo-test.c	31 Aug 2005 23:17:28 -0000	1.56
+++ cairo-test.c	1 Sep 2005 02:11:23 -0000	1.57
@@ -35,7 +35,9 @@
 #endif
 #include <errno.h>
 #include <string.h>
+#if HAVE_FCFINI
 #include <fontconfig/fontconfig.h>
+#endif
 
 #include "cairo-test.h"
 

Index: create-from-png-stream.c
===================================================================
RCS file: /cvs/cairo/cairo/test/create-from-png-stream.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- create-from-png-stream.c	27 Jul 2005 16:23:29 -0000	1.1
+++ create-from-png-stream.c	1 Sep 2005 02:11:23 -0000	1.2
@@ -32,8 +32,8 @@
 #define HEIGHT 2
 
 cairo_test_t test = {
-    "create-from-png",
-    "Tests the creation of an image surface from a PNG file",
+    "create-from-png-stream",
+    "Tests the creation of an image surface from a PNG using a FILE *",
     WIDTH, HEIGHT
 };
 
@@ -61,7 +61,7 @@
     xasprintf (&filename, "%s/%s", srcdir ? srcdir : ".",
 	       "create-from-png-stream-ref.png");
 
-    file = fopen (filename, "r");
+    file = fopen (filename, "rb");
     if (file == NULL) {
 	cairo_test_log ("Error: failed to open file: %s\n", filename);
 	return CAIRO_TEST_FAILURE;

Index: nil-surface.c
===================================================================
RCS file: /cvs/cairo/cairo/test/nil-surface.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- nil-surface.c	19 Aug 2005 14:39:48 -0000	1.2
+++ nil-surface.c	1 Sep 2005 02:11:23 -0000	1.3
@@ -24,7 +24,7 @@
  */
 
 #include "cairo-test.h"
-#include <cairo-ft.h>
+#include <stddef.h>
 
 /* Test to verify fixes for the following similar bugs:
  *



More information about the cairo-commit mailing list