Suppress another bogus warning in Coverity
This commit is contained in:
parent
56d3b9135f
commit
85a93a8078
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user