[Bug 102242] [CI][HSW] assert(level < 128) failed for igt at pm_rpm@sysfs-read

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Aug 16 09:30:09 UTC 2017


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

--- Comment #1 from Chris Wilson <chris at chris-wilson.co.uk> ---
It can be as simple as

diff --git a/tests/pm_rpm.c b/tests/pm_rpm.c
index 47c9f114..f59f71d0 100644
--- a/tests/pm_rpm.c
+++ b/tests/pm_rpm.c
@@ -850,11 +850,12 @@ static void read_files_from_dir(int path, int level)
        struct dirent *dirent;
        int rc;

+       if (level >= 128)
+               return; /* enough! we could chose to detect the recursion... */
+
        dir = fdopendir(path);
        igt_assert(dir);

-       igt_assert_lt(level, 128);
-
        while ((dirent = readdir(dir))) {
                struct stat stat_buf;
                int de;

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are on the CC list for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/intel-gfx-bugs/attachments/20170816/6931aa01/attachment.html>


More information about the intel-gfx-bugs mailing list