From dd21a9163cbe2711e93c231e4fa7d3c3b9fec06e Mon Sep 17 00:00:00 2001 From: Alan Somers Date: Sat, 7 Sep 2019 19:25:45 +0000 Subject: [PATCH] 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 --- tests/sys/fs/fusefs/utils.hh | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/sys/fs/fusefs/utils.hh b/tests/sys/fs/fusefs/utils.hh index 85d4d81b3ec3..518f294fbab3 100644 --- a/tests/sys/fs/fusefs/utils.hh +++ b/tests/sys/fs/fusefs/utils.hh @@ -231,6 +231,7 @@ class FuseTest : public ::testing::Test { * to document the leakage, and provide a single point of suppression * for static analyzers. */ + /* coverity[+close: arg-0] */ static void leak(int fd __unused) {} /*