Add fclose to fbuffer's tests

This commit is contained in:
Nobuyuki Kubota 2014-07-02 17:35:15 +09:00
parent c868da2879
commit 9d8e6b92fc

View File

@ -93,6 +93,7 @@ TEST(buffer, fbuffer)
EXPECT_EQ('a', static_cast<char>(ch)); EXPECT_EQ('a', static_cast<char>(ch));
} }
EXPECT_EQ(EOF, fgetc(file)); EXPECT_EQ(EOF, fgetc(file));
fclose(file);
} }
@ -114,5 +115,6 @@ TEST(buffer, fbuffer_c)
EXPECT_EQ('a', (char) ch); EXPECT_EQ('a', (char) ch);
} }
EXPECT_EQ(EOF, fgetc(file)); EXPECT_EQ(EOF, fgetc(file));
fclose(file);
} }