spdlog/tests/includes.h

23 lines
400 B
C
Raw Normal View History

2015-05-15 13:30:37 -04:00
#pragma once
#include <cstdio>
#include <fstream>
#include <string>
#include <ostream>
#include <chrono>
2015-05-15 13:54:01 -04:00
#include <exception>
2015-05-15 13:30:37 -04:00
#include "catch.hpp"
#include "../include/spdlog/spdlog.h"
2015-05-15 13:54:01 -04:00
#include "../include/spdlog/sinks/null_sink.h"
static void prepare_logdir()
{
spdlog::drop_all();
#ifdef _WIN32
auto rv = system("del /F /Q logs\\*");
#else
auto rv = system("rm -f logs/*");
#endif
}