
I had been using Boost test with 1.32 successfully #include <boost/test/test_tools.hpp> #include <boost/test/floating_point_comparison.hpp> // Extra test tool for FP comparison. but with 1.33 it fails to compile at using boost::unit_test_framework::unit_test_log; using boost::unit_test_framework::log_level; and used this to control the log threshold unit_test_log::instance().set_log_threshold_level_by_name("test_suite"); and to switch the log file unit_test_log::instance().set_log_stream(flog); // Switch to log file.// unit_test_log::instance().set_log_stream(cout); // Switch back to cout, But this has been removed in 1.33 but I am unclear how to replicate this sort of function. Suggestions? Thanks Paul Paul A Bristow Prizet Farmhouse, Kendal, Cumbria UK LA8 8AB +44 1539 561830 +44 7714 330204 mailto: pbristow@hetp.u-net.com www.hetp.u-net.com

"Paul A Bristow" <pbristow@hetp.u-net.com> writes:
I had been using Boost test with 1.32 successfully
#include <boost/test/test_tools.hpp> #include <boost/test/floating_point_comparison.hpp> // Extra test tool for FP comparison.
but with 1.33 it fails to compile at
using boost::unit_test_framework::unit_test_log; using boost::unit_test_framework::log_level;
and used this to control the log threshold
unit_test_log::instance().set_log_threshold_level_by_name("test_suite");
and to switch the log file
unit_test_log::instance().set_log_stream(flog); // Switch to log file.// unit_test_log::instance().set_log_stream(cout); // Switch back to cout,
But this has been removed in 1.33
but I am unclear how to replicate this sort of function.
Suggestions?
Thanks
Paul
-- Dave Abrahams Boost Consulting www.boost-consulting.com
participants (2)
-
David Abrahams
-
Paul A Bristow