diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2018-11-26 15:24:26 +0100 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2018-11-27 09:50:04 +0100 |
commit | e5b829891a152f3081ba8f6d9c7d2ac98daebf76 (patch) | |
tree | 435b27e321e15551b664925b94cfc46d30f686a2 /tests | |
parent | 2af377e93d73bb3eef519068f7fd433a2ae2bb75 (diff) |
tests/gem_ctx_param: Missing igt_fixture
It's not cool to run an ioctl outside of igt_fixture.
Reported-by: Petri Latvala <petri.latvala@intel.com>
Cc: Petri Latvala <petri.latvala@intel.com>
Reviewed-by: Petri Latvala <petri.latvala@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/i915/gem_ctx_param.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/i915/gem_ctx_param.c b/tests/i915/gem_ctx_param.c index c46fd709..0bbc5eff 100644 --- a/tests/i915/gem_ctx_param.c +++ b/tests/i915/gem_ctx_param.c @@ -156,14 +156,14 @@ igt_main gem_require_contexts(fd); ctx = gem_context_create(fd); - } - arg.param = I915_CONTEXT_PARAM_BAN_PERIOD; + arg.param = I915_CONTEXT_PARAM_BAN_PERIOD; - /* XXX start to enforce ban period returning -EINVAL when - * transition has been done */ - if (__gem_context_get_param(fd, &arg) == -EINVAL) - arg.param = I915_CONTEXT_PARAM_BANNABLE; + /* XXX start to enforce ban period returning -EINVAL when + * transition has been done */ + if (__gem_context_get_param(fd, &arg) == -EINVAL) + arg.param = I915_CONTEXT_PARAM_BANNABLE; + } igt_subtest("basic") { arg.ctx_id = ctx; |