Commit c962fd54 authored by Marcin Siodelski's avatar Marcin Siodelski

[3534] Reset unit test logger in the Daemon.parsingConsoleOutput test.

parent 31c9ec10
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
#include <exceptions/exceptions.h> #include <exceptions/exceptions.h>
#include <dhcpsrv/daemon.h> #include <dhcpsrv/daemon.h>
#include <dhcpsrv/logging.h> #include <dhcpsrv/logging.h>
#include <log/logger_unittest_support.h>
#include <cc/data.h> #include <cc/data.h>
#include <gtest/gtest.h> #include <gtest/gtest.h>
...@@ -71,6 +72,11 @@ TEST(DaemonTest, parsingConsoleOutput) { ...@@ -71,6 +72,11 @@ TEST(DaemonTest, parsingConsoleOutput) {
Daemon x; Daemon x;
EXPECT_NO_THROW(x.configureLogger(config, storage, false)); EXPECT_NO_THROW(x.configureLogger(config, storage, false));
// configureLogger will modify the logging options of the log4cplus logger.
// We need to reset the logger settings so as the following tests are
// not affected by this modification.
isc::log::resetUnitTestRootLogger();
// The parsed configuration should be processed by the daemon and // The parsed configuration should be processed by the daemon and
// stored in configuration storage. // stored in configuration storage.
ASSERT_EQ(1, storage->getLoggingInfo().size()); ASSERT_EQ(1, storage->getLoggingInfo().size());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment