Date: Sat, 7 Sep 2019 19:25:45 +0000 (UTC) From: Alan Somers <asomers@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r352021 - head/tests/sys/fs/fusefs Message-ID: <201909071925.x87JPjuX023201@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: asomers Date: Sat Sep 7 19:25:45 2019 New Revision: 352021 URL: https://svnweb.freebsd.org/changeset/base/352021 Log: 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 Modified: head/tests/sys/fs/fusefs/utils.hh Modified: head/tests/sys/fs/fusefs/utils.hh ============================================================================== --- head/tests/sys/fs/fusefs/utils.hh Sat Sep 7 17:22:25 2019 (r352020) +++ head/tests/sys/fs/fusefs/utils.hh Sat Sep 7 19:25:45 2019 (r352021) @@ -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) {} /*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201909071925.x87JPjuX023201>