[Bug 111694] [CI][DRMTIP] igt at kms_hdmi_inject@inject-audio - fail - Failed assertion: glob("/proc/asound/card*/" ELD_PREFIX "*", GLOB_NOSORT, NULL, &glob_buf) == 0, glob failed
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Mon Sep 16 12:18:35 UTC 2019
https://bugs.freedesktop.org/show_bug.cgi?id=111694
Chris Wilson <chris at chris-wilson.co.uk> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|NEW |RESOLVED
--- Comment #2 from Chris Wilson <chris at chris-wilson.co.uk> ---
commit 8a611399226cfa248f91f80d263b84b7f13cabee (origin/master, origin/HEAD)
Author: Simon Ser <simon.ser at intel.com>
Date: Fri Sep 13 13:23:40 2019 +0300
lib/igt_eld: fix eld_is_supported failing if not supported
When glob(3) doesn't find any results, it returns GLOB_NOMATCH. I've been
confused by GLOB_NOCHECK's description and thought it would return 0.
Instead of failing on the assert, return that ELDs aren't supported in case
there's no match.
While at it, also include glob's return value in the assert message.
Signed-off-by: Simon Ser <simon.ser at intel.com>
Fixes: 3374cd0b048f ("lib/igt_eld: introduce eld_is_supported")
Cc: Petri Latvala <petri.latvala at intel.com>
Reviewed-by: Petri Latvala <petri.latvala at intel.com>
--
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/intel-gfx-bugs/attachments/20190916/01f916d7/attachment-0001.html>
More information about the intel-gfx-bugs
mailing list