summaryrefslogtreecommitdiff
path: root/tests/gem_ctx_bad_destroy.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/gem_ctx_bad_destroy.c')
-rw-r--r--tests/gem_ctx_bad_destroy.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/gem_ctx_bad_destroy.c b/tests/gem_ctx_bad_destroy.c
index fd6d988b..50bb9aa0 100644
--- a/tests/gem_ctx_bad_destroy.c
+++ b/tests/gem_ctx_bad_destroy.c
@@ -45,6 +45,8 @@ igt_main
igt_fixture {
fd = drm_open_driver_render(DRIVER_INTEL);
+ gem_require_contexts(fd);
+
ctx_id = gem_context_create(fd);
/* Make sure a proper destroy works first */
gem_context_destroy(fd, ctx_id);