Fix build for boost 1.71.0 02/223502/2 accepted/tizen_6.0_unified accepted/tizen_6.0_unified_hotfix accepted/tizen_6.5_unified tizen_6.0 tizen_6.0_hotfix tizen_6.5 accepted/tizen/6.0/unified/20201030.115204 accepted/tizen/6.0/unified/hotfix/20201103.004249 accepted/tizen/6.5/unified/20211028.122549 accepted/tizen/unified/20200131.050459 submit/tizen/20200130.113030 submit/tizen_6.0/20201029.205104 submit/tizen_6.0_hotfix/20201102.192504 submit/tizen_6.0_hotfix/20201103.114804 submit/tizen_6.5/20211028.162401 tizen_6.0.m2_release tizen_6.5.m2_release
authorTomasz Swierczek <t.swierczek@samsung.com>
Thu, 30 Jan 2020 09:08:22 +0000 (10:08 +0100)
committerTomasz Swierczek <t.swierczek@samsung.com>
Thu, 30 Jan 2020 10:34:16 +0000 (11:34 +0100)
Change-Id: I5ed6e278880e1dfee014b0275008cd73059a0683

tests/colour_log_formatter.cpp
tests/colour_log_formatter.h

index 041fef8..baa8b9d 100644 (file)
@@ -120,6 +120,23 @@ colour_log_formatter::log_build_info(std::ostream &output)
                   << BOOST_VERSION % 100 << std::endl;
 }
 
+
+
+//____________________________________________________________________________//
+
+void
+colour_log_formatter::log_build_info(std::ostream &output, bool log_build_info)
+{
+       if (log_build_info)
+               output  << "Platform: " << BOOST_PLATFORM            << '\n'
+                               << "Compiler: " << BOOST_COMPILER            << '\n'
+                               << "STL     : " << BOOST_STDLIB              << '\n';
+
+       output << "Boost   : " << BOOST_VERSION / 100000      << '.'
+                       << BOOST_VERSION / 100 % 1000  << '.'
+                       << BOOST_VERSION % 100       << std::endl;
+}
+
 //____________________________________________________________________________//
 
 void
index 3de5899..37c2f7c 100644 (file)
@@ -25,6 +25,7 @@ public:
                boost::unit_test::counter_t test_cases_amount);
        void log_finish(std::ostream &);
        void log_build_info(std::ostream &);
+       void log_build_info(std::ostream &output, bool log_build_info = true);
 
        void test_unit_start(
                std::ostream &,