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>
This commit is contained in:
Chris Wilson
2010-08-25 11:56:59 +01:00
parent 14618620cc
commit c935c60214
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -98,7 +98,7 @@ test_bad_flink(int fd)
flink.handle = 0x10101010;
ret = ioctl(fd, DRM_IOCTL_GEM_FLINK, &flink);
assert(ret == -1 && errno == EBADF);
assert(ret == -1 && errno == ENOENT);
}
static void