Skip to content

Commit

Permalink
Attempted fix for tests on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
hjs-ast committed Nov 27, 2024
1 parent e0b3ae2 commit ad6bdbb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_file_logging.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ TEST_CASE("rotating_file_logger3", "[rotating_logger]") {
TEST_CASE("rotating_file_logger4", "[rotating_logger]") {
prepare_logdir();
size_t max_size = 1024 * 10;
auto sink = std::make_shared<spdlog::sinks::rotating_file_sink_st>(ROTATING_LOG, max_size, 2);
spdlog::filename_t basename = SPDLOG_FILENAME_T(ROTATING_LOG);
auto sink = std::make_shared<spdlog::sinks::rotating_file_sink_st>(basename, max_size, 2);
auto logger = std::make_shared<spdlog::logger>("rotating_sink_logger", sink);

logger->info("Test message - pre-rotation");
Expand Down

0 comments on commit ad6bdbb

Please sign in to comment.