summaryrefslogtreecommitdiff
path: root/tests/gem_readwrite.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2010-12-10 12:10:13 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2010-12-10 12:10:13 +0000
commit000a0972c21ca1a17609e638907607470ee21751 (patch)
tree4b23a0508084f5c804d0879e5bec0f8a931aacc5 /tests/gem_readwrite.c
parent537703fd4805e9cd352965fce642670986822d22 (diff)
tests: Update for ENOENT returns from unknown handles
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests/gem_readwrite.c')
-rw-r--r--tests/gem_readwrite.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/gem_readwrite.c b/tests/gem_readwrite.c
index 4f5cde6c..07dc853a 100644
--- a/tests/gem_readwrite.c
+++ b/tests/gem_readwrite.c
@@ -127,11 +127,11 @@ int main(int argc, char **argv)
printf("Testing read of bad buffer handle\n");
ret = do_read(fd, 1234, buf, 0, 1024);
- assert(ret == -1 && errno == EBADF);
+ assert(ret == -1 && errno == ENOENT);
printf("Testing write of bad buffer handle\n");
ret = do_write(fd, 1234, buf, 0, 1024);
- assert(ret == -1 && errno == EBADF);
+ assert(ret == -1 && errno == ENOENT);
close(fd);