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) {
|
||||
FILE *pf = fopen("test-file", "w");
|
||||
fprintf(pf, FILE_CONTENT);
|
||||
fclose(pf);
|
||||
FILE *fp = std::fopen("test-file", "w");
|
||||
std::fputs(FILE_CONTENT, fp);
|
||||
std::fclose(fp);
|
||||
File f("test-file", File::RDONLY);
|
||||
ASSERT_TRUE(IsOpen(f.descriptor()));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user