diff --git a/crypto/bio/bio_test.cc b/crypto/bio/bio_test.cc index 8362bb1a1c4..814c09b290d 100644 --- a/crypto/bio/bio_test.cc +++ b/crypto/bio/bio_test.cc @@ -224,7 +224,6 @@ TEST(BIOTest, CloseFlags) { BIO_gets(binary_bio.get(), b2, sizeof(b2)); EXPECT_EQ(std::string(b1), std::string(b2)); - /* // Assert that BIO_CLOSE causes the underlying file to be closed on BIO free // (ftell will return < 0) FILE *tmp = tmpfile(); @@ -235,9 +234,8 @@ TEST(BIOTest, CloseFlags) { int tmp_fd = fileno(tmp); EXPECT_LT(0, tmp_fd); EXPECT_TRUE(BIO_free(bio)); - EXPECT_EQ(-1, lseek(tmp_fd, 0, SEEK_CUR)); - EXPECT_EQ(errno, EBADF); // EBADF indicates taht |BIO_free| closed the file - */ + //EXPECT_EQ(-1, lseek(tmp_fd, 0, SEEK_CUR)); + //EXPECT_EQ(errno, EBADF); // EBADF indicates taht |BIO_free| closed the file // Assert that BIO_NOCLOSE does not closethe underlying file on BIO free FILE *tmp = tmpfile();