<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:chris@chris-wilson.co.uk" title="Chris Wilson <chris@chris-wilson.co.uk>"> <span class="fn">Chris Wilson</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - [CI][DRMTIP] igt@kms_hdmi_inject@inject-audio - fail - Failed assertion: glob("/proc/asound/card*/" ELD_PREFIX "*", GLOB_NOSORT, NULL, &glob_buf) == 0, glob failed"
href="https://bugs.freedesktop.org/show_bug.cgi?id=111694">bug 111694</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>---
</td>
<td>FIXED
</td>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>NEW
</td>
<td>RESOLVED
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - [CI][DRMTIP] igt@kms_hdmi_inject@inject-audio - fail - Failed assertion: glob("/proc/asound/card*/" ELD_PREFIX "*", GLOB_NOSORT, NULL, &glob_buf) == 0, glob failed"
href="https://bugs.freedesktop.org/show_bug.cgi?id=111694#c2">Comment # 2</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - [CI][DRMTIP] igt@kms_hdmi_inject@inject-audio - fail - Failed assertion: glob("/proc/asound/card*/" ELD_PREFIX "*", GLOB_NOSORT, NULL, &glob_buf) == 0, glob failed"
href="https://bugs.freedesktop.org/show_bug.cgi?id=111694">bug 111694</a>
from <span class="vcard"><a class="email" href="mailto:chris@chris-wilson.co.uk" title="Chris Wilson <chris@chris-wilson.co.uk>"> <span class="fn">Chris Wilson</span></a>
</span></b>
<pre>commit 8a611399226cfa248f91f80d263b84b7f13cabee (origin/master, origin/HEAD)
Author: Simon Ser <<a href="mailto:simon.ser@intel.com">simon.ser@intel.com</a>>
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 <<a href="mailto:simon.ser@intel.com">simon.ser@intel.com</a>>
Fixes: 3374cd0b048f ("lib/igt_eld: introduce eld_is_supported")
Cc: Petri Latvala <<a href="mailto:petri.latvala@intel.com">petri.latvala@intel.com</a>>
Reviewed-by: Petri Latvala <<a href="mailto:petri.latvala@intel.com">petri.latvala@intel.com</a>></pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
<li>You are the QA Contact for the bug.</li>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>