diff options
| author | Chris Wilson <chris@chris-wilson.co.uk> | 2020-04-09 08:20:39 +0100 |
|---|---|---|
| committer | Chris Wilson <chris@chris-wilson.co.uk> | 2020-04-09 09:31:25 +0100 |
| commit | e03bdc72bcd8c234650b92ec42a61257797f4e5b (patch) | |
| tree | 9964f88483bf2295972f9743e7b76b5557cd7a72 /lib | |
| parent | 481eab36019588d91579a3b074bdb0a95bd737cb (diff) | |
lib/i915: Cleanup errno before starting tests
Since we probe the existence of the engines, we expect errno to be
randomly set prior to starting the test. Lets reset it to 0 so that any
error before the igt_dynamic_f test is not mistakenly printed by a
failed test.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Acked-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/i915/gem_engine_topology.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/i915/gem_engine_topology.c b/lib/i915/gem_engine_topology.c index 3b3ce8d1..2c0ae5a2 100644 --- a/lib/i915/gem_engine_topology.c +++ b/lib/i915/gem_engine_topology.c @@ -485,6 +485,7 @@ void dyn_sysfs_engines(int i915, int engines, const char *file, igt_require(fstatat(engine, file, &st, 0) == 0); } + errno = 0; /* start afresh */ test(i915, engine); } |
