projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Clean-up: tests: unchecked closedir value in test_fd_tracker
[lttng-tools.git]
/
tests
/
unit
/
test_fd_tracker.c
diff --git
a/tests/unit/test_fd_tracker.c
b/tests/unit/test_fd_tracker.c
index 8c0fc5ffe90a4dcc8b5052adf0dd99c7743122af..fe14e9c5cf26417972a964c2747c9d9c9fb10d9d 100644
(file)
--- a/
tests/unit/test_fd_tracker.c
+++ b/
tests/unit/test_fd_tracker.c
@@
-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.02377 seconds
and
4
git commands to generate.