--- cairo-0.9.2.orig/test/cairo-test.c 2005-08-05 12:37:42.000000000 -0500 +++ cairo-0.9.2/test/cairo-test.c 2005-08-19 16:03:06.000000000 -0500 @@ -383,7 +383,12 @@ } xrender_format = XRenderFindStandardFormat (dpy, PictStandardARGB32); - + if (xrender_format == NULL) { + cairo_test_log ("XRenderFindStandardFormat returned NULL\n"); + return NULL; + } + + xtc->pixmap = XCreatePixmap (dpy, DefaultRootWindow (dpy), width, height, xrender_format->depth);