diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2017-11-22 18:50:12 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2017-11-23 07:25:54 +0000 |
commit | fb6ca825d0d8b97b6e02dea096ce3de180bbcace (patch) | |
tree | 9d11ae9b8d20c00136888901529b9a3e120447c5 /tests/perf_pmu.c | |
parent | 6a15ccfb9d4612e2b4797387b8b13457a17e5c02 (diff) |
igt/perf_pmu: Clear errno in between invalid atrr tests
Reset the errno after testing each invalid attr so that it is carried
over on a false positive.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Diffstat (limited to 'tests/perf_pmu.c')
-rw-r--r-- | tests/perf_pmu.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/perf_pmu.c b/tests/perf_pmu.c index 237d362a..86336d20 100644 --- a/tests/perf_pmu.c +++ b/tests/perf_pmu.c @@ -674,6 +674,7 @@ do { \ attr.config = I915_PMU_ENGINE_BUSY(I915_ENGINE_CLASS_RENDER, 0); \ attr.type = i915_type_id(); \ igt_assert(attr.type != 0); \ + errno = 0; \ } while(0) ATTR_INIT(); |