Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sebastian Schrader
Kea
Commits
c962fd54
Commit
c962fd54
authored
Aug 29, 2014
by
Marcin Siodelski
Browse files
[3534] Reset unit test logger in the Daemon.parsingConsoleOutput test.
parent
31c9ec10
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/dhcpsrv/tests/daemon_unittest.cc
View file @
c962fd54
...
...
@@ -16,6 +16,7 @@
#include
<exceptions/exceptions.h>
#include
<dhcpsrv/daemon.h>
#include
<dhcpsrv/logging.h>
#include
<log/logger_unittest_support.h>
#include
<cc/data.h>
#include
<gtest/gtest.h>
...
...
@@ -71,6 +72,11 @@ TEST(DaemonTest, parsingConsoleOutput) {
Daemon
x
;
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
// stored in configuration storage.
ASSERT_EQ
(
1
,
storage
->
getLoggingInfo
().
size
());
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment