add simple test for OpmLog::setupSimpleDefaultLog.

This commit is contained in:
Liu Ming 2016-05-23 15:01:50 +08:00
parent 77a3df1a61
commit a5afe90659

View File

@ -359,3 +359,13 @@ BOOST_AUTO_TEST_CASE(TestOpmLogWithLimits)
std::cout << log_stream1.str() << std::endl;
std::cout << log_stream2.str() << std::endl;
}
BOOST_AUTO_TEST_CASE(TestsetupSimpleLog)
{
bool use_prefix = false;
OpmLog::setupSimpleDefaultLogging(use_prefix);
BOOST_CHECK_EQUAL(true, OpmLog::hasBackend("SimpleDefautLog"));
}