[Bug 71631] [Bisected]igt/pc8 fails

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Nov 20 03:01:52 PST 2013


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

--- Comment #3 from Chris Wilson <chris at chris-wilson.co.uk> ---
diff --git a/tests/pm_pc8.c b/tests/pm_pc8.c
index efeae21..15127d4 100644
--- a/tests/pm_pc8.c
+++ b/tests/pm_pc8.c
@@ -602,15 +602,14 @@ static void setup_runtime_pm(void)
         * suite goes faster and we have a higher probability of triggering
race
         * conditions. */
        fd = open(POWER_DIR "/autosuspend_delay_ms", O_WRONLY);
-       igt_assert_f(fd >= 0,
-                    "Can't open " POWER_DIR "/autosuspend_delay_ms\n");
+       if (fd != -1) {
+               /* If we fail to write to the file, it means this system
doesn't support
+                * runtime PM. */
+               size = write(fd, "0\n", 2);
+               has_runtime_pm = (size == 2);

-       /* If we fail to write to the file, it means this system doesn't
support
-        * runtime PM. */
-       size = write(fd, "0\n", 2);
-       has_runtime_pm = (size == 2);
-
-       close(fd);
+               close(fd);
+       }

        if (!has_runtime_pm)
                return;

should make it correctly skip the test

-- 
You are receiving this mail because:
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: <http://lists.freedesktop.org/archives/intel-gfx-bugs/attachments/20131120/e2116254/attachment.html>


More information about the intel-gfx-bugs mailing list