summaryrefslogtreecommitdiff
path: root/tests/gem_cs_prefetch.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/gem_cs_prefetch.c')
-rw-r--r--tests/gem_cs_prefetch.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/gem_cs_prefetch.c b/tests/gem_cs_prefetch.c
index fd9bb793..9f445d52 100644
--- a/tests/gem_cs_prefetch.c
+++ b/tests/gem_cs_prefetch.c
@@ -94,6 +94,7 @@ static void can_test_ring(unsigned ring)
/* Dance to avoid dying with master open */
close(master);
+ igt_require_gem(fd);
gem_require_ring(fd, ring);
gem_require_store_dword(fd, ring);
close(fd);