Opened 13 years ago

Closed 13 years ago

Last modified 7 years ago

#3316 closed Bugs (fixed)

Access violation when trying to log from init_tests_func

Reported by: astukalov@… Owned by: Gennadiy Rozental
Milestone: Boost 1.59.0 Component: test
Version: Boost 1.39.0 Severity: Problem
Keywords: log access violation Cc:

Description

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:

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.

Change History (2)

comment:1 by Gennadiy Rozental, 13 years ago

Resolution: fixed
Status: newclosed

fixed in trunk

comment:2 by Raffi Enficiaud, 7 years ago

Milestone: To Be DeterminedBoost 1.59.0
Note: See TracTickets for help on using tickets.