feof() returns non-zero not necessarily 1

This commit is contained in:
Axel Kohlmeyer
2022-05-29 19:53:11 -04:00
parent 562cd12d82
commit fa79a66734

View File

@ -111,7 +111,7 @@ TEST_F(TextFileReaderTest, usefp)
delete reader;
// 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);
}