Commit Graph

4 Commits (171666e4b8127c17c68ea0d44cf4e81ec342f2d0)

Author SHA1 Message Date
Chris Wilson ef20301a11 tests/gem_flink: Check for MASTER before proceeding
gem_flink|gem_open are DRM_AUTH ioctl, and being lazy we do not
establish ourselves as authenticated before testing the ioctls. So
instead of aborting, skip the test unless we have root privileges (and
so DRM_MASTER and the DRM_AUTH restriction no longer applies).

A future test could assert that the flink fails without proper
authentication.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=43924
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-12-18 14:03:18 +00:00
Chris Wilson 000a0972c2 tests: Update for ENOENT returns from unknown handles
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2010-12-10 12:10:13 +00:00
Kristian Høgsberg e9d6116e5b Use libudev in test case to only run gem tests for intel devices. 2009-04-06 17:13:01 -04:00
Eric Anholt 09cf0f0213 drm: Add tests for GEM_FLINK ioctl. 2008-09-10 14:07:18 -07:00