mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-28 17:19:34 +08:00
Make tests support empty SPDLOG_EOL with new helper method require_message_count()
This commit is contained in:
@@ -24,7 +24,7 @@ TEST_CASE("daily_logger with dateonly calculator", "[daily_logger]")
|
||||
logger->flush();
|
||||
|
||||
auto filename = fmt::to_string(w);
|
||||
REQUIRE(count_lines(filename) == 10);
|
||||
require_message_count(filename, 10);
|
||||
}
|
||||
|
||||
struct custom_daily_file_name_calculator
|
||||
@@ -55,12 +55,10 @@ TEST_CASE("daily_logger with custom calculator", "[daily_logger]")
|
||||
logger->info("Test message {}", i);
|
||||
}
|
||||
|
||||
logger->
|
||||
|
||||
flush();
|
||||
logger->flush();
|
||||
|
||||
auto filename = fmt::to_string(w);
|
||||
REQUIRE(count_lines(filename) == 10);
|
||||
require_message_count(filename, 10);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user