mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-24 16:26:13 +00:00
tests/gem_ctx_param_basic.c: fix non-root-set-no-zeromap subtest
The test expects an ioctl failure when it tries to set CONTEXT_PARAM_NO_ZEROMAP from a non-root process. However, there is no requirement in the kernel for the user to be root to set this parameter, so the test is failing (it never passed as far as I'm aware of). Fix the test by making it expect a successful ioctl completion. Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com> Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org> Signed-off-by: Thomas Wood <thomas.wood@intel.com>
This commit is contained in:
parent
ad4f3206dc
commit
a16704261f
@ -127,7 +127,7 @@ igt_main
|
||||
ctx_param.context = ctx;
|
||||
TEST_SUCCESS(LOCAL_IOCTL_I915_GEM_CONTEXT_GETPARAM);
|
||||
ctx_param.value--;
|
||||
TEST_FAIL(LOCAL_IOCTL_I915_GEM_CONTEXT_SETPARAM, EPERM);
|
||||
TEST_SUCCESS(LOCAL_IOCTL_I915_GEM_CONTEXT_SETPARAM);
|
||||
}
|
||||
|
||||
igt_waitchildren();
|
||||
|
Loading…
x
Reference in New Issue
Block a user