mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-25 15:21:54 +00:00
Fix warning.
This commit is contained in:
parent
e283930566
commit
9c75b9eaa1
@ -419,9 +419,9 @@ TEST(FileTest, DefaultCtor) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
TEST(FileTest, OpenBufferedFileInCtor) {
|
TEST(FileTest, OpenBufferedFileInCtor) {
|
||||||
FILE *pf = fopen("test-file", "w");
|
FILE *fp = std::fopen("test-file", "w");
|
||||||
fprintf(pf, FILE_CONTENT);
|
std::fputs(FILE_CONTENT, fp);
|
||||||
fclose(pf);
|
std::fclose(fp);
|
||||||
File f("test-file", File::RDONLY);
|
File f("test-file", File::RDONLY);
|
||||||
ASSERT_TRUE(IsOpen(f.descriptor()));
|
ASSERT_TRUE(IsOpen(f.descriptor()));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user