Skip to content

Commit 660ac34

Browse files
committed
Fix issue cucumber#81 by intercepting messages from BOOST_*_MESSAGE macros
1 parent 6882ac8 commit 660ac34

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/drivers/BoostDriver.cpp

+8-4
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ class CukeBoostLogInterceptor : public ::boost::unit_test::unit_test_log_formatt
6060
void log_exception_finish( std::ostream& ) {};
6161

6262
void log_entry_start( std::ostream&, log_entry_data const&, log_entry_types /*let*/) {};
63-
void log_entry_value( std::ostream&, const_string /*value*/);
64-
void log_entry_value( std::ostream&, lazy_ostream const& /*value*/) {};
63+
void log_entry_value( std::ostream&, const_string value);
64+
void log_entry_value( std::ostream&, lazy_ostream const& value);
6565
void log_entry_finish( std::ostream&) {};
6666

6767
void entry_context_start( std::ostream&, log_level /*l*/) {}
@@ -79,9 +79,13 @@ void CukeBoostLogInterceptor::reset() {
7979
/*
8080
* Threshold level set to log_all_errors, so we should be fine logging everything
8181
*/
82-
void CukeBoostLogInterceptor::log_entry_value( std::ostream&, const_string value) {
82+
void CukeBoostLogInterceptor::log_entry_value(std::ostream&, const_string value) {
8383
description << value;
84-
};
84+
}
85+
86+
void CukeBoostLogInterceptor::log_entry_value(std::ostream&, lazy_ostream const& value){
87+
description << value;
88+
}
8589

8690
const InvokeResult CukeBoostLogInterceptor::getResult() const {
8791
std::string d = description.str();

0 commit comments

Comments
 (0)