diff options
| author | Tvrtko Ursulin <tvrtko.ursulin@intel.com> | 2018-02-05 15:02:21 +0000 |
|---|---|---|
| committer | Tvrtko Ursulin <tvrtko.ursulin@intel.com> | 2018-02-05 18:02:36 +0000 |
| commit | f5166e367265ea164d4c459dfe3ea7c08f01764e (patch) | |
| tree | ea07d484db03f5b9e3393dda3835ac3f6cb79e48 /lib/i915 | |
| parent | 5eb6a554dec274618ae351c7aa3c1b6bc2295160 (diff) | |
tests/perf_pmu: Explicitly test for engine availability in init tests
Test will succeed if present engine can be opened, or if the missing
engine reports the correct error code.
v2:
* Use the right errno.
* Close fd only on success. (Chris Wilson)
v3:
* Only sample errno on failure. (Chris Wilson)
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'lib/i915')
0 files changed, 0 insertions, 0 deletions
