logging test
This commit is contained in:
parent
47405834a3
commit
13e3cd9e33
@ -1,4 +1,5 @@
|
||||
add_library(concordia-tests
|
||||
test_logging.cpp
|
||||
test_utils.cpp
|
||||
test_word_map.cpp
|
||||
test_hash_generator.cpp
|
||||
|
26
concordia/t/test_logging.cpp
Normal file
26
concordia/t/test_logging.cpp
Normal file
@ -0,0 +1,26 @@
|
||||
#include "tests/unit-tests/unit_tests_globals.hpp"
|
||||
#include "concordia/word_map.hpp"
|
||||
|
||||
#include <string>
|
||||
#include <boost/filesystem.hpp>
|
||||
|
||||
#define TMP_LOG_FILE "/tmp/concordia.log"
|
||||
|
||||
using namespace std;
|
||||
|
||||
BOOST_AUTO_TEST_SUITE(logging)
|
||||
|
||||
BOOST_AUTO_TEST_CASE( LoggingTest )
|
||||
{
|
||||
WordMap wordMap = WordMap();
|
||||
|
||||
SET_LOGGER_FILE(TMP_LOG_FILE);
|
||||
SET_LOGGING_LEVEL("ERROR");
|
||||
|
||||
int a = 12414;
|
||||
WARN(a);
|
||||
|
||||
boost::filesystem::remove(TMP_LOG_FILE);
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_SUITE_END()
|
Loading…
Reference in New Issue
Block a user