[Bug 102370] [CI][SNB] Failed assertion: eld_is_valid() in igt at kms_hdmi_inject@inject-audio

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Aug 23 14:41:48 UTC 2017


https://bugs.freedesktop.org/show_bug.cgi?id=102370

--- Comment #1 from Chris Wilson <chris at chris-wilson.co.uk> ---
diff --git a/tests/kms_hdmi_inject.c b/tests/kms_hdmi_inject.c
index cb916ac..cb55d2b 100644
--- a/tests/kms_hdmi_inject.c
+++ b/tests/kms_hdmi_inject.c
@@ -246,6 +246,12 @@ hdmi_inject_audio(int drm_fd, drmModeConnector *connector)
        free(edid);
 }

+static bool has_proc_asound(void)
+{
+       struct stat st;
+       return stat("/proc/asound", &st) == 0;
+}
+
 igt_main
 {
        int drm_fd;
@@ -263,8 +269,10 @@ igt_main
        igt_subtest("inject-4k")
                hdmi_inject_4k(drm_fd, connector);

-       igt_subtest("inject-audio")
+       igt_subtest("inject-audio") {
+               igt_require(has_proc_asound());
                hdmi_inject_audio(drm_fd, connector);
+       }

        igt_fixture {
                drmModeFreeConnector(connector);

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee 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/20170823/d62f0380/attachment.html>


More information about the intel-gfx-bugs mailing list