<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [CI][HSW] assert(level < 128) failed for igt@pm_rpm@sysfs-read"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=102242#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [CI][HSW] assert(level < 128) failed for igt@pm_rpm@sysfs-read"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=102242">bug 102242</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>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;</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are on the CC list for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>