[Boost-bugs] [Boost C++ Libraries] #3316: Access violation when trying to log from init_tests_func

Subject: [Boost-bugs] [Boost C++ Libraries] #3316: Access violation when trying to log from init_tests_func
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-08-04 11:22:24


#3316: Access violation when trying to log from init_tests_func
----------------------------------+-----------------------------------------
 Reporter: astukalov@… | Owner: rogeeff
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: test
  Version: Boost 1.39.0 | Severity: Problem
 Keywords: log access violation |
----------------------------------+-----------------------------------------
 Using BOOST_ERROR() from test framework initialization is not possible,
 since it requires tests to be initialized, so I'm using the following
 macro to output errors from init_unit_test_func:
 {{{
 #!C
 LOG_FATAL_ERROR( M ) \
 BOOST_TEST_LOG_ENTRY( ::boost::unit_test::log_fatal_errors )\
     << (::boost::unit_test::lazy_ostream::instance() << M)
 }}}

 It gives me memory access violation, when using human-readable log format.
 However, if I'm using XML format, it correctly writes the message to the
 log.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3316>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:00 UTC