mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-26 02:21:34 +08:00
Update test_eventlog.cpp
This commit is contained in:
parent
1ccdc225af
commit
f57378d8ba
@ -43,7 +43,7 @@ static void test_single_print(std::function<void(std::string const &)> do_log, s
|
|||||||
|
|
||||||
REQUIRE(record->NumStrings == 1);
|
REQUIRE(record->NumStrings == 1);
|
||||||
REQUIRE(record->EventType == expected_ev_type);
|
REQUIRE(record->EventType == expected_ev_type);
|
||||||
REQUIRE(record->TimeGenerated == expected_time_generated);
|
REQUIRE((expected_time_generated - record->TimeGenerated) <= 3u);
|
||||||
|
|
||||||
std::string message_in_log(((char *)record + record->StringOffset));
|
std::string message_in_log(((char *)record + record->StringOffset));
|
||||||
REQUIRE(message_in_log == expected_contents + spdlog::details::os::default_eol);
|
REQUIRE(message_in_log == expected_contents + spdlog::details::os::default_eol);
|
||||||
|
Loading…
Reference in New Issue
Block a user