feof() returns non-zero not necessarily 1
This commit is contained in:
@ -111,7 +111,7 @@ TEST_F(TextFileReaderTest, usefp)
|
|||||||
delete reader;
|
delete reader;
|
||||||
|
|
||||||
// check that we reached EOF and the destructor didn't close the file.
|
// check that we reached EOF and the destructor didn't close the file.
|
||||||
ASSERT_EQ(feof(fp), 1);
|
ASSERT_NE(feof(fp), 0);
|
||||||
ASSERT_EQ(fclose(fp), 0);
|
ASSERT_EQ(fclose(fp), 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user