| 139 | } |
| 140 | |
| 141 | void inline_executor_exception_test() |
| 142 | { |
| 143 | #if !defined(BOOST_ASIO_NO_EXCEPTIONS) |
| 144 | bool caught = false; |
| 145 | |
| 146 | try |
| 147 | { |
| 148 | inline_executor().execute(throw_exception); |
| 149 | } |
| 150 | catch (...) |
| 151 | { |
| 152 | caught = true; |
| 153 | } |
| 154 | |
| 155 | BOOST_ASIO_CHECK(caught); |
| 156 | #endif // !defined(BOOST_ASIO_NO_EXCEPTIONS) |
| 157 | } |
| 158 | |
| 159 | BOOST_ASIO_TEST_SUITE |
| 160 | ( |