igt/drm_read: Abuse read(drm)
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 5 Dec 2014 13:12:37 +0000 (13:12 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 5 Dec 2014 14:34:33 +0000 (14:34 +0000)
commit819e68f2ed0064f48250a4ed8e5135026c90b514
treef60ee123b421ea836c3f4db27c1b2958356826a8
parentb64704673e2a4d891386a1200150e679216b6d60
igt/drm_read: Abuse read(drm)

Check that the more obvious userspace error conditions are handled by
the kernel, ideally without loss of data. These include nonblocking
waits, passing invalid buffers and passing buffers of the incorrect
length.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
tests/.gitignore
tests/Makefile.sources
tests/drm_read.c [new file with mode: 0644]