From e5b829891a152f3081ba8f6d9c7d2ac98daebf76 Mon Sep 17 00:00:00 2001 From: Daniel Vetter Date: Mon, 26 Nov 2018 15:24:26 +0100 Subject: tests/gem_ctx_param: Missing igt_fixture It's not cool to run an ioctl outside of igt_fixture. Reported-by: Petri Latvala Cc: Petri Latvala Reviewed-by: Petri Latvala Signed-off-by: Daniel Vetter --- tests/i915/gem_ctx_param.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'tests/i915/gem_ctx_param.c') 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; -- cgit v1.2.3