summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Widawsky <benjamin.widawsky@intel.com>2013-10-16 21:51:02 -0700
committerBen Widawsky <benjamin.widawsky@intel.com>2013-12-05 20:31:05 -0800
commitc92623b8fbe12991265785c3f05c45e01232d057 (patch)
treeee20583ee394bf58787fe344a0c7b4ca2c1c774c
parent8ac7b93b218af1544988331cd68c69ba4102c29f (diff)
gem_ctx_bad_destroy: change return type
Destroying the default context is now EPERM. Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
-rw-r--r--tests/gem_ctx_bad_destroy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/gem_ctx_bad_destroy.c b/tests/gem_ctx_bad_destroy.c
index e93642f6..1d902e63 100644
--- a/tests/gem_ctx_bad_destroy.c
+++ b/tests/gem_ctx_bad_destroy.c
@@ -83,7 +83,7 @@ int main(int argc, char *argv[])
/* Try to destroy the default context */
destroy.ctx_id = 0;
ret = drmIoctl(fd, CONTEXT_DESTROY_IOCTL, &destroy);
- handle_bad(ret, errno, ENOENT, "default destroy");
+ handle_bad(ret, errno, EPERM, "default destroy");
close(fd);