From 85a93a8078b85830d223b2598f58e62210afb0ce Mon Sep 17 00:00:00 2001 From: vitaut Date: Mon, 19 Oct 2015 08:25:30 -0700 Subject: [PATCH] Suppress another bogus warning in Coverity --- test/posix-test.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/posix-test.cc b/test/posix-test.cc index e4f75257..ace421d4 100644 --- a/test/posix-test.cc +++ b/test/posix-test.cc @@ -166,6 +166,7 @@ TEST(BufferedFileTest, CloseError) { TEST(BufferedFileTest, Fileno) { BufferedFile f; +#ifndef __COVERITY__ // fileno on a null FILE pointer either crashes or returns an error. EXPECT_DEATH_IF_SUPPORTED({ try { @@ -174,6 +175,7 @@ TEST(BufferedFileTest, Fileno) { std::exit(1); } }, ""); +#endif f = open_buffered_file(); EXPECT_TRUE(f.fileno() != -1); File copy = File::dup(f.fileno());