|
|
@ -1,7 +1,7 @@
|
|
|
|
#include "includes.h"
|
|
|
|
#include "includes.h"
|
|
|
|
#include "test_sink.h"
|
|
|
|
|
|
|
|
#include "spdlog/async.h"
|
|
|
|
#include "spdlog/async.h"
|
|
|
|
#include "spdlog/sinks/simple_file_sink.h"
|
|
|
|
#include "spdlog/sinks/simple_file_sink.h"
|
|
|
|
|
|
|
|
#include "test_sink.h"
|
|
|
|
|
|
|
|
|
|
|
|
// std::unique_ptr<spdlog::async_logger> create_logger(size_t tp_queue_size, size_t tp_threads)
|
|
|
|
// std::unique_ptr<spdlog::async_logger> create_logger(size_t tp_queue_size, size_t tp_threads)
|
|
|
|
//{
|
|
|
|
//{
|
|
|
@ -87,7 +87,6 @@ TEST_CASE("multi threads", "[async]")
|
|
|
|
{
|
|
|
|
{
|
|
|
|
logger->info("Hello message #{}", j);
|
|
|
|
logger->info("Hello message #{}", j);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -96,7 +95,6 @@ TEST_CASE("multi threads", "[async]")
|
|
|
|
t.join();
|
|
|
|
t.join();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
logger->flush();
|
|
|
|
logger->flush();
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
REQUIRE(test_sink->msg_counter() == messages * n_threads);
|
|
|
|
REQUIRE(test_sink->msg_counter() == messages * n_threads);
|
|
|
|