7 #define BOOST_TEST_DYN_LINK
8 #define BOOST_TEST_MODULE "Test module for CF log facility"
10 #include <boost/test/unit_test.hpp>
12 #include <boost/iostreams/device/back_inserter.hpp>
19 using namespace boost;
27 BOOST_AUTO_TEST_SUITE( LogTestSuite )
34 Logger::instance().openFiles();
37 if(common::PE::Comm::instance().is_active())
39 BOOST_CHECK(Logger::instance().getStream(
INFO).isFileOpen());
40 BOOST_CHECK(Logger::instance().getStream(
ERROR).isFileOpen());
41 BOOST_CHECK(Logger::instance().getStream(
WARNING).isFileOpen());
42 BOOST_CHECK(Logger::instance().getStream(
DEBUG).isFileOpen());
46 BOOST_CHECK(!Logger::instance().getStream(
INFO).isFileOpen());
47 BOOST_CHECK(!Logger::instance().getStream(
ERROR).isFileOpen());
48 BOOST_CHECK(!Logger::instance().getStream(
WARNING).isFileOpen());
49 BOOST_CHECK(!Logger::instance().getStream(
DEBUG).isFileOpen());
57 CFinfo <<
"1. this is unflused CFlog line 1" <<
"\n";
58 std::cout <<
"2. This is flused std::cout" << std::endl;
63 std::cout <<
"2. This is flused std::cout" << std::endl;
70 BOOST_AUTO_TEST_SUITE_END()
#define CFinfo
these are always defined
external boost library namespace
Top-level namespace for coolfluid.
BOOST_AUTO_TEST_CASE(openFiles)
Most basic kernel library.