Enabling logging interface (optionally with log4cxx)
diff --git a/test/test-sync-core.cc b/test/test-sync-core.cc
index b8316c1..c8a474a 100644
--- a/test/test-sync-core.cc
+++ b/test/test-sync-core.cc
@@ -1,5 +1,5 @@
#include "sync-core.h"
-
+#include "logging.h"
#include <boost/test/unit_test.hpp>
#include <boost/filesystem.hpp>
@@ -10,6 +10,8 @@
using namespace boost;
using namespace boost::filesystem;
+INIT_LOGGER("Test.Sync.Core");
+
BOOST_AUTO_TEST_SUITE(SyncCoreTests)
void callback(const SyncStateMsgPtr &msg)
@@ -37,6 +39,8 @@
BOOST_AUTO_TEST_CASE(SyncCoreTest)
{
+ INIT_LOGGERS();
+
string dir = "./SyncCoreTest";
// clean the test dir
path d(dir);
@@ -67,7 +71,8 @@
usleep(1000000);
checkRoots(core1->root(), core2->root());
- // cout << "\n\n\n\n\n\n----------\n";
+ _LOG_TRACE ("\n\n\n\n\n\n----------\n");
+
core1->updateLocalState(1);
usleep(100000);
checkRoots(core1->root(), core2->root());
@@ -87,7 +92,8 @@
BOOST_CHECK_EQUAL(log1->LookupLocator (user2), loc2);
// simple simultaneous data generation
- // cout << "\n\n\n\n\n\n----------Simultaneous\n";
+ _LOG_TRACE ("\n\n\n\n\n\n----------Simultaneous\n");
+
core1->updateLocalState(11);
usleep(100);
core2->updateLocalState(15);