summaryrefslogtreecommitdiff
path: root/tests/gem_reset_stats.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/gem_reset_stats.c')
-rw-r--r--tests/gem_reset_stats.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/gem_reset_stats.c b/tests/gem_reset_stats.c
index 17a9b648..74ba2656 100644
--- a/tests/gem_reset_stats.c
+++ b/tests/gem_reset_stats.c
@@ -114,7 +114,10 @@ static int has_engine(int fd,
static void check_context(const struct intel_execution_engine *e)
{
int fd = drm_open_driver(DRIVER_INTEL);
+
+ gem_require_contexts(fd);
igt_require(has_engine(fd, gem_context_create(fd), e));
+
close(fd);
}