Fix build break 20/228020/2
authorTomasz Swierczek <t.swierczek@samsung.com>
Wed, 18 Mar 2020 06:52:14 +0000 (07:52 +0100)
committerTomasz Swierczek <t.swierczek@samsung.com>
Wed, 18 Mar 2020 07:51:46 +0000 (07:51 +0000)
Previously, log_build_info was not having additional bool parameter.

When new parameter was added, new function was added that overridden
previous one but had no chance of being properly used (ambiguity
introduced). This failed at compile time in some envs, depending on
options used.

Change-Id: Icb8ffeae5c0c51bca2e9a6f2a0956fc6fe1590ec

tests/colour_log_formatter.cpp
tests/colour_log_formatter.h

index fb51aaa..38d7e7c 100644 (file)
@@ -111,19 +111,6 @@ colour_log_formatter::log_finish(std::ostream &ostr)
 //____________________________________________________________________________//
 
 void
-colour_log_formatter::log_build_info(std::ostream &output)
-{
-       output  << "Platform: " << BOOST_PLATFORM            << '\n'
-                       << "Compiler: " << BOOST_COMPILER            << '\n'
-                       << "STL     : " << BOOST_STDLIB              << '\n'
-                       << "Boost   : " << BOOST_VERSION / 100000      << "."
-                       << BOOST_VERSION / 100 % 1000  << "."
-                       << BOOST_VERSION % 100       << std::endl;
-}
-
-//____________________________________________________________________________//
-
-void
 colour_log_formatter::log_build_info(std::ostream &output, bool log_build_info)
 {
        if (log_build_info)
index 937ef9b..7fbc934 100644 (file)
@@ -24,7 +24,6 @@ public:
                std::ostream &,
                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(