diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2020-05-05 13:08:54 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2020-05-19 14:18:56 +0100 |
commit | f3072b262d01c1d2837b73c658faba77686dd154 (patch) | |
tree | 3de2331d188c77ec357711300eba0404d22a969c /tests | |
parent | 66ab5e42811fee3dea8c21ab29e70e323a0650de (diff) |
lib/i915: Reset all engine properties to defaults prior to the start of a test
We need each test in an isolated context, so that bad results from one
test do not interfere with the next. In particular, we want to clean up
the device and reset it to the defaults so that they are known for the
next test, and the test can focus on behaviour it wants to control.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Acked-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/i915/gem_ctx_persistence.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/i915/gem_ctx_persistence.c b/tests/i915/gem_ctx_persistence.c index ce9f0235..cca4c3a9 100644 --- a/tests/i915/gem_ctx_persistence.c +++ b/tests/i915/gem_ctx_persistence.c @@ -56,7 +56,6 @@ static void cleanup(int i915) DROP_RESET_ACTIVE | DROP_RESET_SEQNO | /* cleanup */ DROP_ACTIVE | DROP_RETIRE | DROP_IDLE | DROP_FREED); - igt_require_gem(i915); } static int wait_for_status(int fence, int timeout) |