From b8cf34c691623e4ec329053cbbf68522a855882d Mon Sep 17 00:00:00 2001 From: DongHun Kwak Date: Thu, 5 Dec 2019 15:12:59 +0900 Subject: Imported Upstream version 1.67.0 --- boost/test/impl/execution_monitor.ipp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'boost/test/impl/execution_monitor.ipp') diff --git a/boost/test/impl/execution_monitor.ipp b/boost/test/impl/execution_monitor.ipp index 94b6f9fbe7..035bb958c1 100644 --- a/boost/test/impl/execution_monitor.ipp +++ b/boost/test/impl/execution_monitor.ipp @@ -63,11 +63,15 @@ using std::va_list; #endif // to use vsnprintf -#if defined(__QNXNTO__) +#if defined(__QNXNTO__) || defined(__VXWORKS__) # include using std::va_list; #endif +#if defined(__VXWORKS__) +# define BOOST_TEST_LIMITED_SIGNAL_DETAILS +#endif + #ifdef BOOST_SEH_BASED_SIGNAL_HANDLING # include @@ -363,11 +367,17 @@ system_signal_exception::report() const return; // no error actually occur? switch( m_sig_info->si_code ) { +#ifdef __VXWORKS__ +// a bit of a hack to adapt code to small m_sig_info VxWorks uses +#define si_addr si_value.sival_int +#define si_band si_value.sival_int +#else case SI_USER: report_error( execution_exception::system_error, "signal: generated by kill() (or family); uid=%d; pid=%d", (int)m_sig_info->si_uid, (int)m_sig_info->si_pid ); break; +#endif case SI_QUEUE: report_error( execution_exception::system_error, "signal: sent by sigqueue()" ); -- cgit v1.2.3