<<diff>>
> Hi,
> I tried to compile Boost.Test using the Comeau C++ compiler version
> 4.3.0.1 under Linux, and I found several problems that I would like to
> report. For one, the build process needs the pre-processor define
> _POSIX_SOURCE
> defined when compiling the execution_monitor.cpp module, because
> otherwise the <setjmp.h> header (Shouldn't you be using <csetjmp>
> anyway?) does not define the datatype "sigjmp_buf".
I need help from Comeau and/or "Unix" users.
1. Would it be OK if I switch to csetjmp? Does it correctly supported by all
unix compilers?
2. Which platforms/compilers require this flag to be set?
3. Where would be the best place to set it: in a code or in a Jamfile?
Gennadiy.
RCS file: /fs/dev/dev/repository/lib/libboost_test/source/execution_monitor.cpp,v
retrieving revision 1.1.1.1
diff -b -u -c -b -r1.1.1.1 execution_monitor.cpp
*** execution_monitor.cpp 2002/10/14 11:54:36 1.1.1.1
--- execution_monitor.cpp 2002/10/15 14:51:48
***************
*** 303,314 ****
}
if( timeout ) {
alarm(0);
! sigaction( SIGALRM, &old_SIGALRM_action, NULL );
}
! sigaction( SIGFPE , &old_SIGFPE_action , NULL );
! sigaction( SIGTRAP, &old_SIGTRAP_action, NULL );
! sigaction( SIGSEGV, &old_SIGSEGV_action, NULL );
! sigaction( SIGBUS , &old_SIGBUS_action , NULL );
if( ec != execution_exception::no_error ) {
throw unix_signal_exception( ec, em );
--- 303,314 ----
}
if( timeout ) {
alarm(0);
! sigaction( SIGALRM, &old_SIGALRM_action, 0 );
}
! sigaction( SIGFPE , &old_SIGFPE_action , 0 );
! sigaction( SIGTRAP, &old_SIGTRAP_action, 0 );
! sigaction( SIGSEGV, &old_SIGSEGV_action, 0 );
! sigaction( SIGBUS , &old_SIGBUS_action , 0 );
if( ec != execution_exception::no_error ) {
throw unix_signal_exception( ec, em );
Index: unit_test_log.cpp
===================================================================
RCS file: /fs/dev/dev/repository/lib/libboost_test/source/unit_test_log.cpp,v
retrieving revision 1.1.1.1
diff -b -u -c -b -r1.1.1.1 unit_test_log.cpp
*** unit_test_log.cpp 2002/10/14 11:54:36 1.1.1.1
--- unit_test_log.cpp 2002/10/15 14:51:48
***************
*** 67,73 ****
void clear_entry_data()
{
! m_entry_file = NULL;
m_entry_line = 0;
m_entry_level = report_nothing;
m_entry_in_progress = false;
--- 67,73 ----
void clear_entry_data()
{
! m_entry_file = 0;
m_entry_line = 0;
m_entry_level = report_nothing;
m_entry_in_progress = false;
***************
*** 76,82 ****
void clear_checkpoint_data()
{
! m_checkpoint_file = NULL;
m_checkpoint_line = 0;
m_checkpoint_message = "";
}
--- 76,82 ----
void clear_checkpoint_data()
{
! m_checkpoint_file = 0;
m_checkpoint_line = 0;
m_checkpoint_message = "";
}
***************
*** 357,363 ****
m_pimpl->m_progress_display.reset( m_pimpl->m_threshold_level ==
report_progress_only ?
new boost::progress_display( m_pimpl->m_expected_total_test_cases_amount,
m_pimpl->stream() ) :
! NULL );
}
//____________________________________________________________________________//
--- 357,363 ----
m_pimpl->m_progress_display.reset( m_pimpl->m_threshold_level ==
report_progress_only ?
new boost::progress_display( m_pimpl->m_expected_total_test_cases_amount,
m_pimpl->stream() ) :
! 0 );
}
//____________________________________________________________________________//
Index: unit_test_result.cpp
===================================================================
RCS file: /fs/dev/dev/repository/lib/libboost_test/source/unit_test_result.cpp,v
retrieving revision 1.1.1.1
diff -b -u -c -b -r1.1.1.1 unit_test_result.cpp
*** unit_test_result.cpp 2002/10/14 11:54:36 1.1.1.1
--- unit_test_result.cpp 2002/10/15 14:51:48
***************
*** 66,72 ****
};
boost::scoped_ptr<unit_test_result> unit_test_result::Impl::m_head;
! unit_test_result* unit_test_result::Impl::m_curr = NULL;
//____________________________________________________________________________//
--- 66,72 ----
};
boost::scoped_ptr<unit_test_result> unit_test_result::Impl::m_head;
! unit_test_result* unit_test_result::Impl::m_curr = 0;
//____________________________________________________________________________//
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost