|
@@ -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) {
|
|
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());
|