diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-08-25 11:56:59 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-08-25 12:00:05 +0100 |
commit | c935c6021449fa442c51858e3d9cd79e1cec62ab (patch) | |
tree | 2274f2a0cdf8cb94a0ea354e6fe6f0b1311e0020 /tests/gem_mmap.c | |
parent | 14618620cc057293bce77f9a137a5f7df083beed (diff) |
tests: Fix fallout from s/EBADF/ENOENT/ in 2.6.36
After bf79cb914dbfe848add8bb76cbb8ff89110d29ff, drm uses ENOENT to
report unknown handles buffer objects, update the tests accordingly.
Fixes:
Bug 29794 - some intel_gpu_tools cases fail
https://bugs.freedesktop.org/show_bug.cgi?id=29794
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests/gem_mmap.c')
-rw-r--r-- | tests/gem_mmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/gem_mmap.c b/tests/gem_mmap.c index 57189145..32b7861c 100644 --- a/tests/gem_mmap.c +++ b/tests/gem_mmap.c @@ -76,7 +76,7 @@ int main(int argc, char **argv) mmap.size = 4096; printf("Testing mmaping of bad object.\n"); ret = ioctl(fd, DRM_IOCTL_I915_GEM_MMAP, &mmap); - assert(ret == -1 && errno == EBADF); + assert(ret == -1 && errno == ENOENT); memset(&create, 0, sizeof(create)); create.size = OBJECT_SIZE; |