#3316 closed Bugs (fixed)
Access violation when trying to log from init_tests_func
Reported by: | 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 , 13 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:2 by , 7 years ago
Milestone: | To Be Determined → Boost 1.59.0 |
---|
Note:
See TracTickets
for help on using tickets.
fixed in trunk