mirror of
https://github.com/gabime/spdlog.git
synced 2025-04-30 12:23:53 +00:00
Fixed tests
This commit is contained in:
parent
4965d6ef68
commit
32b2fa8877
@ -58,7 +58,7 @@ TEST_CASE("test_empty", "[ringbuffer_sink]")
|
|||||||
auto sink = std::make_shared<spdlog::sinks::ringbuffer_sink_mt>(sink_size);
|
auto sink = std::make_shared<spdlog::sinks::ringbuffer_sink_mt>(sink_size);
|
||||||
spdlog::logger l("logger", sink);
|
spdlog::logger l("logger", sink);
|
||||||
|
|
||||||
sink->drain([&](std::string_view msg) {
|
sink->drain([&](std::string_view) {
|
||||||
REQUIRE_FALSE(true); // should not be called since the sink is empty
|
REQUIRE_FALSE(true); // should not be called since the sink is empty
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -74,7 +74,7 @@ TEST_CASE("test_empty_size", "[ringbuffer_sink]")
|
|||||||
l.info("{}", i);
|
l.info("{}", i);
|
||||||
}
|
}
|
||||||
|
|
||||||
sink->drain([&](std::string_view msg) {
|
sink->drain([&](std::string_view) {
|
||||||
REQUIRE_FALSE(true); // should not be called since the sink size is 0
|
REQUIRE_FALSE(true); // should not be called since the sink size is 0
|
||||||
});
|
});
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user