diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2020-05-11 22:27:46 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2020-05-11 22:32:11 +0100 |
commit | ef5bb4714fe5cd08acc8a7522f40f3495d824dda (patch) | |
tree | 77603cbdb741beabe808e93af56e5431df3ad231 /tests/i915/gem_exec_params.c | |
parent | 48ed99c40779fc1b1f0fee8d51a051d90a277436 (diff) |
i915/gem_exec_params: Don't skip for invalid-bsd-ring
In the CI shards, we have a mixture of icl, some with vcs2, some without.
Any test that requires vcs2 will flip-flop between skips, so avoid such
requires where possible. Here, we know what the outcome should be if we
have vcs2 and if we do not, so assert we get the correct outcome.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Acked-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Diffstat (limited to 'tests/i915/gem_exec_params.c')
-rw-r--r-- | tests/i915/gem_exec_params.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/i915/gem_exec_params.c b/tests/i915/gem_exec_params.c index f969fb41..83194be7 100644 --- a/tests/i915/gem_exec_params.c +++ b/tests/i915/gem_exec_params.c @@ -388,9 +388,14 @@ igt_main } igt_subtest("invalid-bsd-ring") { - igt_require(gem_has_bsd2(fd)); + int expected; + + expected = 0; + if (gem_has_bsd2(fd)) + expected = -EINVAL; + execbuf.flags = I915_EXEC_BSD | I915_EXEC_BSD_MASK; - RUN_FAIL(EINVAL); + igt_assert_eq(__gem_execbuf(fd, &execbuf), expected); } igt_subtest("invalid-bsd1-flag-on-render") { |