From 98f4145b2c66edc897cd705852e47a6c26a76e53 Mon Sep 17 00:00:00 2001 From: Tomasz Swierczek Date: Tue, 19 Jun 2018 07:54:16 +0200 Subject: [PATCH] Adjust build to boost 1.65.1 Change-Id: Ic31a2e237154e92e3ca1309ad40a14e26b369f00 --- test/colour_log_formatter.cc | 22 ++++++++++++++++++++++ test/colour_log_formatter.h | 11 +++++++++++ 2 files changed, 33 insertions(+) diff --git a/test/colour_log_formatter.cc b/test/colour_log_formatter.cc index 71a66b4..00f3bd8 100644 --- a/test/colour_log_formatter.cc +++ b/test/colour_log_formatter.cc @@ -328,6 +328,28 @@ colour_log_formatter::entry_context_finish(std::ostream& output) //____________________________________________________________________________// +// adjustment to boost 1.65.1 and up +#if BOOST_VERSION >= 106501 +void +colour_log_formatter::log_entry_context( + std::ostream& os, + boost::unit_test::log_level l, + boost::unit_test::const_string value) +{ + (void)l; + os <<< "\n " << value; +} +void +colour_log_formatter::entry_context_finish( + std::ostream& os, + boost::unit_test::log_level l) +{ + (void)l; + os.flush(); +} +#endif +//____________________________________________________________________________// + } // namespace cryptsvc //____________________________________________________________________________// diff --git a/test/colour_log_formatter.h b/test/colour_log_formatter.h index 734012a..d6382d2 100644 --- a/test/colour_log_formatter.h +++ b/test/colour_log_formatter.h @@ -67,6 +67,17 @@ public: boost::unit_test::const_string value); void entry_context_finish(std::ostream &); +#if BOOST_VERSION >= 106501 + void log_entry_context( + std::ostream &, + boost::unit_test::log_level, + boost::unit_test::const_string); + void entry_context_finish( + std::ostream &, + boost::unit_test::log_level); +#endif + + private: bool m_isTestCaseFailed; }; -- 2.7.4