#include <random>
#define CATCH_CONFIG_MAIN
#include <catch2/catch_test_macros.hpp>
namespace bux {
namespace user {
std::unique_ptr<C_ParaLog> g_log;
namespace {
thread_local std::mt19937 g_rng{std::random_device{"/dev/urandom"}()};
void reset_log()
{
bux::user::g_log = std::make_unique<bux::C_ParaLog>();
}
void test_test()
{
LOG(LL_FATAL,
"Fatal Test");
}
}
TEST_CASE("Empty paralog", "[Z]")
{
reset_log();
REQUIRE_NOTHROW(test_test());
}
#define DEF_LOGGER_TAIL_(x)
#define LOG_RAW(fmtStr,...)
#define LOG(ll, fmtStr,...)
THE common namespace of bux library.