BIND 10 trac976, updated. a9d0e238a2ddfc35c772e2a72a3c73ced70538c4 [trac976] Correct include file problems
BIND 10 source code commits
bind10-changes at lists.isc.org
Mon Jun 6 13:58:34 UTC 2011
The branch, trac976 has been updated
via a9d0e238a2ddfc35c772e2a72a3c73ced70538c4 (commit)
from a86e015d7c5fd0b0d8286523aa5d7e3b036f8589 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit a9d0e238a2ddfc35c772e2a72a3c73ced70538c4
Author: Stephen Morris <stephen at isc.org>
Date: Mon Jun 6 14:56:38 2011 +0100
[trac976] Correct include file problems
These files weren't changed when root_logger_name.h was renamed to
logger_name.h. Rather than just change the #include file name, the
logging was correctly initialized.
-----------------------------------------------------------------------
Summary of changes:
src/lib/asiodns/tests/run_unittests.cc | 4 ++--
src/lib/asiolink/tests/run_unittests.cc | 7 ++-----
2 files changed, 4 insertions(+), 7 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/lib/asiodns/tests/run_unittests.cc b/src/lib/asiodns/tests/run_unittests.cc
index d3c63b6..df77368 100644
--- a/src/lib/asiodns/tests/run_unittests.cc
+++ b/src/lib/asiodns/tests/run_unittests.cc
@@ -15,14 +15,14 @@
#include <gtest/gtest.h>
#include <util/unittests/run_all.h>
-#include <log/root_logger_name.h>
+#include <log/logger_manager.h>
#include <dns/tests/unittest_util.h>
int
main(int argc, char* argv[])
{
::testing::InitGoogleTest(&argc, argv); // Initialize Google test
- isc::log::setRootLoggerName("unittest"); // Set a root logger name
+ isc::log::LoggerManager::init("unittest"); // Set a root logger name
isc::UnitTestUtil::addDataPath(TEST_DATA_DIR); // Add location of test data
return (isc::util::unittests::run_all());
diff --git a/src/lib/asiolink/tests/run_unittests.cc b/src/lib/asiolink/tests/run_unittests.cc
index 8d18d62..b07ce7e 100644
--- a/src/lib/asiolink/tests/run_unittests.cc
+++ b/src/lib/asiolink/tests/run_unittests.cc
@@ -14,15 +14,12 @@
#include <gtest/gtest.h>
#include <util/unittests/run_all.h>
-
-#include <log/root_logger_name.h>
-#include <dns/tests/unittest_util.h>
+#include <log/logger_manager.h>
int
main(int argc, char* argv[])
{
::testing::InitGoogleTest(&argc, argv); // Initialize Google test
- isc::log::setRootLoggerName("unittest"); // Set a root logger name
-
+ isc::log::LoggerManager::init("unittest"); // Set a root logger name
return (isc::util::unittests::run_all());
}
More information about the bind10-changes
mailing list