fusefs: suppress some Coverity resource leak CIDs in the tests
The fusefs tests deliberately leak file descriptors. To do otherwise would add extra complications to the tests' mock FUSE server. This annotation should hopefully convince Coverity to shut up about the leaks. Reviewed by: uqs MFC after: 4 days Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
268c280675
commit
dd21a9163c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=352021
@ -231,6 +231,7 @@ class FuseTest : public ::testing::Test {
|
|||||||
* to document the leakage, and provide a single point of suppression
|
* to document the leakage, and provide a single point of suppression
|
||||||
* for static analyzers.
|
* for static analyzers.
|
||||||
*/
|
*/
|
||||||
|
/* coverity[+close: arg-0] */
|
||||||
static void leak(int fd __unused) {}
|
static void leak(int fd __unused) {}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user