summaryrefslogtreecommitdiff
path: root/tests/i915/gem_wait.c
diff options
context:
space:
mode:
authorChuansheng Liu <chuansheng.liu@intel.com>2022-02-07 13:49:51 +0800
committerAshutosh Dixit <ashutosh.dixit@intel.com>2022-02-07 12:57:01 -0800
commit2401624349fecc8213d7d394a84ad91cf04241f7 (patch)
tree61eef7aaafd6c61eea5a29b3661638562bbe734e /tests/i915/gem_wait.c
parent9cd99d763440ae75d9981ce4e361d3deb5edb4e4 (diff)
i915/tests: Pass right ctx id into igt_allow_hang()
Just like the commit 74fc362b425c(i915/gem_busy: Prevent context ban with right ctx id), some codes are using the constant ctx id 0 passed into igt_allow_hang(), it may cause test failures. This patch is to correct them with right ctx id for the below tests: tests/i915/prime_busy tests/i915/gem_ctx_persistence tests/i915/gem_exec_schedule tests/i915/gem_wait Cc: Ashutosh Dixit <ashutosh.dixit@intel.com> Signed-off-by: Chuansheng Liu <chuansheng.liu@intel.com> Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Diffstat (limited to 'tests/i915/gem_wait.c')
-rw-r--r--tests/i915/gem_wait.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/i915/gem_wait.c b/tests/i915/gem_wait.c
index 0d1fea99..b17927b6 100644
--- a/tests/i915/gem_wait.c
+++ b/tests/i915/gem_wait.c
@@ -232,7 +232,7 @@ igt_main
igt_hang_t hang;
igt_fixture {
- hang = igt_allow_hang(fd, 0, 0);
+ hang = igt_allow_hang(fd, ctx->id, 0);
igt_fork_signal_helper();
}