summaryrefslogtreecommitdiff
path: root/src/driclient/src/test.c
diff options
context:
space:
mode:
authorYounes Manton <younes.m@gmail.com>2008-09-08 21:05:49 -0400
committerYounes Manton <younes.m@gmail.com>2008-09-12 12:33:52 -0400
commit6b50fd27b85bc0d060ead13e6c656dd64c9a2978 (patch)
tree2b374470e4c97cb30051c6b3ad1d6cf50293695f /src/driclient/src/test.c
parent81335d0f1760fe172a106f79e81281c1f0d7dedf (diff)
g3dvl: Clean up Makefile deps.
Diffstat (limited to 'src/driclient/src/test.c')
-rw-r--r--src/driclient/src/test.c41
1 files changed, 0 insertions, 41 deletions
diff --git a/src/driclient/src/test.c b/src/driclient/src/test.c
deleted file mode 100644
index 15f75d928b6..00000000000
--- a/src/driclient/src/test.c
+++ /dev/null
@@ -1,41 +0,0 @@
-#include <assert.h>
-#include <stdio.h>
-#include "driclient.h"
-
-int main(int argc, char **argv)
-{
- Display *dpy;
- Window root, window;
-
- dri_screen_t *screen;
- dri_drawable_t *dri_drawable;
- dri_context_t *context;
-
- dpy = XOpenDisplay(NULL);
- root = XDefaultRootWindow(dpy);
- window = XCreateSimpleWindow(dpy, root, 0, 0, 100, 100, 0, 0, 0);
-
- XSelectInput(dpy, window, 0);
- XMapWindow(dpy, window);
- XSync(dpy, 0);
-
- assert(driCreateScreen(dpy, 0, &screen, NULL) == 0);
- assert(driCreateDrawable(screen, window, &dri_drawable) == 0);
- assert(driCreateContext(screen, XDefaultVisual(dpy, 0), &context) == 0);
- assert(driUpdateDrawableInfo(dri_drawable) == 0);
-
- DRI_VALIDATE_DRAWABLE_INFO(screen, dri_drawable);
-
- assert(drmGetLock(screen->fd, context->drm_context, 0) == 0);
- assert(drmUnlock(screen->fd, context->drm_context) == 0);
-
- assert(driDestroyContext(context) == 0);
- assert(driDestroyDrawable(dri_drawable) == 0);
- assert(driDestroyScreen(screen) == 0);
-
- XDestroyWindow(dpy, window);
- XCloseDisplay(dpy);
-
- return 0;
-}
-