summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomasz Swierczek <t.swierczek@samsung.com>2018-06-19 07:54:16 +0200
committerTomasz Swierczek <t.swierczek@samsung.com>2018-06-19 08:48:52 +0200
commit98f4145b2c66edc897cd705852e47a6c26a76e53 (patch)
treef1f54abf8ee19f8860f60fff0e639f059e833f59
parent1e0f1f367b46d34c2432b7cf83a305d2fb9e80ab (diff)
downloadlibcryptsvc-98f4145b2c66edc897cd705852e47a6c26a76e53.tar.gz
libcryptsvc-98f4145b2c66edc897cd705852e47a6c26a76e53.tar.bz2
libcryptsvc-98f4145b2c66edc897cd705852e47a6c26a76e53.zip
Change-Id: Ic31a2e237154e92e3ca1309ad40a14e26b369f00
-rw-r--r--test/colour_log_formatter.cc22
-rw-r--r--test/colour_log_formatter.h11
2 files changed, 33 insertions, 0 deletions
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;
};