Commit 9c75b9ea authored by Victor Zverovich's avatar Victor Zverovich

Fix warning.

parent e2839305
......@@ -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()));
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment