test_unsupported_extension.cpp 855 B

123456789101112131415161718
  1. //---------------------------------------------------------------------------//
  2. // Copyright (c) 2014 Fabian Köhler <fabian2804@googlemail.com>
  3. //
  4. // Distributed under the Boost Software License, Version 1.0
  5. // See accompanying file LICENSE_1_0.txt or copy at
  6. // http://www.boost.org/LICENSE_1_0.txt
  7. //
  8. // See http://boostorg.github.com/compute for more information.
  9. //---------------------------------------------------------------------------//
  10. #define BOOST_TEST_MODULE TestUnsupportedExtension
  11. #include <boost/test/unit_test.hpp>
  12. #include <boost/compute/exception/unsupported_extension_error.hpp>
  13. BOOST_AUTO_TEST_CASE(unsupported_extension_error_what)
  14. {
  15. boost::compute::unsupported_extension_error error("CL_DUMMY_EXTENSION");
  16. BOOST_CHECK_EQUAL(std::string(error.what()), std::string("OpenCL extension CL_DUMMY_EXTENSION not supported"));
  17. }