From 50cb405f93da70054ede29e0c365f06352dc8fe5 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Thu, 19 Jul 2007 06:02:20 -0700 Subject: Fix the getclient test (Need this feature for future tests). --- bsd-core/drm_ioctl.c | 4 +--- tests/Makefile.am | 2 -- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/bsd-core/drm_ioctl.c b/bsd-core/drm_ioctl.c index e22faa83..b5b5cf58 100644 --- a/bsd-core/drm_ioctl.c +++ b/bsd-core/drm_ioctl.c @@ -213,9 +213,7 @@ int drm_getclient(DRM_IOCTL_ARGS) } DRM_UNLOCK(); - DRM_COPY_TO_USER_IOCTL( (drm_client_t *)data, client, sizeof(client) ); - - return 0; + return EINVAL; } int drm_getstats(DRM_IOCTL_ARGS) diff --git a/tests/Makefile.am b/tests/Makefile.am index 815dae57..949e2b00 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -18,7 +18,5 @@ TESTS = openclose \ getversion \ getclient -XFAIL_TESTS = getclient - EXTRA_PROGRAMS = $(TESTS) CLEANFILES = $(EXTRA_PROGRAMS) $(EXTRA_LTLIBRARIES) \ No newline at end of file -- cgit v1.2.3