Skip to content

Commit

Permalink
fix test_rolling_file_object
Browse files Browse the repository at this point in the history
  • Loading branch information
oathdruid committed Aug 1, 2024
1 parent 8c83695 commit 8dc5e97
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/logging/test_rolling_file_object.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ TEST_F(RollingFileObjectTest, fd_refer_to_latest_file) {
last_fd = fd;
}

::dprintf(last_fd, "this should appear in file\n");
ASSERT_NE(-1, last_fd);
ASSERT_LT(0, ::dprintf(last_fd, "this should appear in file\n"));
::std::filesystem::directory_iterator dir {"log"};
auto entry = *begin(dir);
::std::ifstream ifs {entry.path()};
Expand Down

0 comments on commit 8dc5e97

Please sign in to comment.