Commit fb6ca825 authored by Chris Wilson's avatar Chris Wilson 🤔

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's avatarChris Wilson <chris@chris-wilson.co.uk>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin's avatarTvrtko Ursulin <tvrtko.ursulin@intel.com>
parent 6a15ccfb
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment