Fix warning.

This commit is contained in:
Victor Zverovich 2014-05-06 12:17:31 -07:00
parent e283930566
commit 9c75b9eaa1

View File

@ -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()));
}