Use angle brackets for includes

verify that the tagged messages are forwarded correctly
This commit is contained in:
Franz G. Fuchs 2019-01-08 13:26:19 +01:00
parent da1ddbfd53
commit 040d576839
2 changed files with 9 additions and 3 deletions

View File

@ -18,7 +18,7 @@
*/
#include "opm/simulators/DeferredLogger.hpp"
#include <opm/simulators/DeferredLogger.hpp>
namespace Opm
{

View File

@ -62,7 +62,8 @@ BOOST_AUTO_TEST_CASE(deferredlogger)
+ Log::prefixMessage(Log::MessageType::Debug, "debug 1") + "\n"
+ Log::prefixMessage(Log::MessageType::Note, "note 1") + "\n"
+ Log::prefixMessage(Log::MessageType::Note, "note 2") + "\n"
+ Log::prefixMessage(Log::MessageType::Note, "note 3") + "\n";
+ Log::prefixMessage(Log::MessageType::Note, "note 3") + "\n"
+ Log::prefixMessage(Log::MessageType::Note, "Message limit reached for message tag: tagme") + "\n";
std::ostringstream log_stream;
initLogger(log_stream);
@ -77,6 +78,11 @@ BOOST_AUTO_TEST_CASE(deferredlogger)
deferredlogger.note("note 1");
deferredlogger.note("tagme", "note 2");
deferredlogger.note("tagme", "note 3");
deferredlogger.note("tagme", "note 3");
deferredlogger.note("tagme", "note 3");
deferredlogger.note("tagme", "note 3");
deferredlogger.note("tagme", "note 3");
deferredlogger.note("tagme", "note 3");
deferredlogger.logMessages();
@ -87,7 +93,7 @@ BOOST_AUTO_TEST_CASE(deferredlogger)
BOOST_CHECK_EQUAL( 1 , counter->numMessages(Log::MessageType::Problem) );
BOOST_CHECK_EQUAL( 1 , counter->numMessages(Log::MessageType::Bug) );
BOOST_CHECK_EQUAL( 1 , counter->numMessages(Log::MessageType::Debug) );
BOOST_CHECK_EQUAL( 3 , counter->numMessages(Log::MessageType::Note) );
BOOST_CHECK_EQUAL( 8 , counter->numMessages(Log::MessageType::Note) );
BOOST_CHECK_EQUAL(log_stream.str(), expected);