From bbd5f03fd8b04b92c9f8f06a386894d88650c0b4 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 11 Aug 2008 14:28:00 -0400 Subject: [test/xlib-surface-source] Skip test if DISPLAY not set --- test/xlib-surface-source.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/xlib-surface-source.c') diff --git a/test/xlib-surface-source.c b/test/xlib-surface-source.c index 192dadc6c..3c3351632 100644 --- a/test/xlib-surface-source.c +++ b/test/xlib-surface-source.c @@ -61,6 +61,10 @@ create_source_surface (int size) data = xmalloc (sizeof (struct closure)); data->dpy = XOpenDisplay (NULL); + if (!data->dpy) { + return NULL; + } + xrender_format = XRenderFindStandardFormat (data->dpy, PictStandardARGB32); data->pix = XCreatePixmap (data->dpy, DefaultRootWindow (data->dpy), -- cgit v1.2.3