summaryrefslogtreecommitdiff
path: root/tests/gem_workarounds.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/gem_workarounds.c')
-rw-r--r--tests/gem_workarounds.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/gem_workarounds.c b/tests/gem_workarounds.c
index 7b999612..78478ad2 100644
--- a/tests/gem_workarounds.c
+++ b/tests/gem_workarounds.c
@@ -182,8 +182,11 @@ static void check_workarounds(int fd, enum operation op, unsigned int flags)
if (flags & FD)
fd = reopen(fd);
- if (flags & CONTEXT)
+
+ if (flags & CONTEXT) {
+ gem_require_contexts(fd);
ctx = gem_context_create(fd);
+ }
igt_assert_eq(workaround_fail_count(fd, ctx), 0);