mirror of
https://github.com/fmtlib/fmt.git
synced 2025-09-12 06:03:56 -04:00
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) {
|
TEST(BufferedFileTest, Fileno) {
|
||||||
BufferedFile f;
|
BufferedFile f;
|
||||||
|
#ifndef __COVERITY__
|
||||||
// fileno on a null FILE pointer either crashes or returns an error.
|
// fileno on a null FILE pointer either crashes or returns an error.
|
||||||
EXPECT_DEATH_IF_SUPPORTED({
|
EXPECT_DEATH_IF_SUPPORTED({
|
||||||
try {
|
try {
|
||||||
@ -174,6 +175,7 @@ TEST(BufferedFileTest, Fileno) {
|
|||||||
std::exit(1);
|
std::exit(1);
|
||||||
}
|
}
|
||||||
}, "");
|
}, "");
|
||||||
|
#endif
|
||||||
f = open_buffered_file();
|
f = open_buffered_file();
|
||||||
EXPECT_TRUE(f.fileno() != -1);
|
EXPECT_TRUE(f.fileno() != -1);
|
||||||
File copy = File::dup(f.fileno());
|
File copy = File::dup(f.fileno());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user