Clean-up: tests: unchecked closedir value in test_fd_tracker
[lttng-tools.git] / tests / unit / test_fd_tracker.c
index 8c0fc5ffe90a4dcc8b5052adf0dd99c7743122af..fe14e9c5cf26417972a964c2747c9d9c9fb10d9d 100644 (file)
@@ -83,7 +83,9 @@ int fd_count(void)
        }
        /* Don't account for the file descriptor opened by opendir(). */
         count--;
-       closedir(dir);
+       if (closedir(dir)) {
+               perror("# Failed to close test program's self/fd directory file descriptor");
+       }
 end:
        return count;
 }
This page took 0.023417 seconds and 4 git commands to generate.