Fix log fomatter according to boost version upgrade 04/183504/1 accepted/tizen_5.0_unified accepted/tizen/5.0/unified/20181102.024419 accepted/tizen/unified/20180710.082954 submit/tizen/20180706.070308 submit/tizen_5.0/20181101.000006
authorsangwan.kwon <sangwan.kwon@samsung.com>
Fri, 6 Jul 2018 05:28:44 +0000 (14:28 +0900)
committersangwan.kwon <sangwan.kwon@samsung.com>
Fri, 6 Jul 2018 05:28:44 +0000 (14:28 +0900)
- boost version : 1.65.1

Change-Id: Ic3b45f5e47cb4e2edbec22820075c43078944c60
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
test/colour_log_formatter.cpp
test/colour_log_formatter.h

index 6240b3a..994dcbc 100644 (file)
@@ -334,6 +334,24 @@ colour_log_formatter::entry_context_start(
                   << " occurred in a following context:";
 }
 
+#if BOOST_VERSION >= 106501
+void
+colour_log_formatter::log_entry_context(
+               std::ostream& output,
+               boost::unit_test::log_level /*l*/,
+               boost::unit_test::const_string value)
+{
+       output << "\n    " << value;
+}
+
+void
+colour_log_formatter::entry_context_finish(
+               std::ostream& output,
+               boost::unit_test::log_level /*l*/)
+{
+       output.flush();
+}
+#else
 void
 colour_log_formatter::log_entry_context(
                std::ostream& output,
@@ -347,6 +365,7 @@ colour_log_formatter::entry_context_finish(std::ostream& output)
 {
        output.flush();
 }
+#endif
 
 //____________________________________________________________________________//
 } // namespace Test
index 998188e..6f68556 100644 (file)
@@ -54,10 +54,17 @@ public:
        void log_entry_finish(std::ostream &);
 
        void entry_context_start(std::ostream& os, boost::unit_test::log_level l);
+
+#if BOOST_VERSION >= 106501
+       void log_entry_context(std::ostream& os,
+                                                  boost::unit_test::log_level /*l*/,
+                                                  boost::unit_test::const_string value);
+       void entry_context_finish(std::ostream& os, boost::unit_test::log_level /*l*/);
+#else
        void log_entry_context(std::ostream& os,
                                                   boost::unit_test::const_string value);
        void entry_context_finish(std::ostream& os);
-
+#endif
 private:
        bool m_isTestCaseFailed;
 };