Skip to content

Commit

Permalink
Prior test succeeded, try to isolate windows stack overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
WillChilds-Klein committed Oct 11, 2023
1 parent 3e9a629 commit c554376
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions crypto/bio/bio_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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();
Expand Down

0 comments on commit c554376

Please sign in to comment.