Fix build break with boost 1.71.0 01/223501/2
authorTomasz Swierczek <t.swierczek@samsung.com>
Thu, 30 Jan 2020 09:05:39 +0000 (10:05 +0100)
committerTomasz Swierczek <t.swierczek@samsung.com>
Thu, 30 Jan 2020 10:36:41 +0000 (11:36 +0100)
Change-Id: I539f28540d327b4cd87a63f39b84a2a36a35e34a

tests/colour_log_formatter.cpp
tests/colour_log_formatter.h

index b2d2b9b..fb51aaa 100644 (file)
@@ -124,6 +124,20 @@ colour_log_formatter::log_build_info(std::ostream &output)
 //____________________________________________________________________________//
 
 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
 colour_log_formatter::test_unit_start(
        std::ostream &output,
        test_unit const &tu)
index 064cfe2..937ef9b 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 &,