]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/compute/test/test_unsupported_extension.cpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / compute / test / test_unsupported_extension.cpp
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
14 BOOST_AUTO_TEST_CASE(unsupported_extension_error_what)
15 {
16 boost::compute::unsupported_extension_error error("CL_DUMMY_EXTENSION");
17 BOOST_CHECK_EQUAL(std::string(error.what()), std::string("OpenCL extension CL_DUMMY_EXTENSION not supported"));
18 }