| 15 | #include <boost/compute/exception/context_error.hpp> |
| 16 | |
| 17 | BOOST_AUTO_TEST_CASE(what) |
| 18 | { |
| 19 | boost::compute::context context = boost::compute::system::default_context(); |
| 20 | boost::compute::context_error error(&context, "Test", 0, 0); |
| 21 | BOOST_CHECK_EQUAL(std::string(error.what()), std::string("Test")); |
| 22 | BOOST_CHECK(*error.get_context_ptr() == context); |
| 23 | BOOST_CHECK(error.get_private_info_ptr() == 0); |
| 24 | BOOST_CHECK(error.get_private_info_size() == 0); |
| 25 | } |
nothing calls this directly
no test coverage detected