/*
 * Copyright 2014-2015 Adam Chyła, adam@chyla.org
 * All rights reserved. Distributed under the terms of the MIT License.
 */

#include "../config.h"

#if defined(HAVE_GTEST) && defined(HAVE_GMOCK)

#include <boost/log/common.hpp>
#include <gtest/gtest.h>

int main(int argc, char **argv) {
  boost::log::core::get()->set_logging_enabled(false);

  testing::InitGoogleTest(&argc, argv);

  return RUN_ALL_TESTS();
}

#else

#error Cannot make tests. Google Test or Google Mock library not found.

#endif // HAVE_BOOST_UNIT_TEST_FRAMEWORK


/*
 * Copyright 2014-2015 Adam Chyła, adam@chyla.org
 * All rights reserved. Distributed under the terms of the MIT License.
 */

#include "../config.h"

#if defined(HAVE_GTEST) && defined(HAVE_GMOCK)

#include <gtest/gtest.h>

int main(int argc, char **argv) {
    testing::InitGoogleTest(&argc, argv);

    return RUN_ALL_TESTS();
}

#else

#error Cannot make tests. Google Test or Google Mock library not found.

#endif // HAVE_BOOST_UNIT_TEST_FRAMEWORK


--- 
+++ 
@@ -7,12 +7,15 @@
 
 #if defined(HAVE_GTEST) && defined(HAVE_GMOCK)
 
+#include <boost/log/common.hpp>
 #include <gtest/gtest.h>
 
 int main(int argc, char **argv) {
-    testing::InitGoogleTest(&argc, argv);
+  boost::log::core::get()->set_logging_enabled(false);
 
-    return RUN_ALL_TESTS();
+  testing::InitGoogleTest(&argc, argv);
+
+  return RUN_ALL_TESTS();
 }
 
 #else
Disable logging in agent tests
