]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/uuid/test/test_entropy_error.cpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / libs / uuid / test / test_entropy_error.cpp
1 //
2 // Copyright (c) 2017 James E. King III
3 //
4 // Distributed under the Boost Software License, Version 1.0.
5 // (See accompanying file LICENSE_1_0.txt or copy at
6 // https://www.boost.org/LICENSE_1_0.txt)
7 //
8 // Entropy error class test
9 //
10
11 #include <boost/detail/lightweight_test.hpp>
12 #include <boost/uuid/entropy_error.hpp>
13 #include <string>
14
15 int main(int, char*[])
16 {
17 using namespace boost::uuids;
18
19 entropy_error err(6, "foo");
20 BOOST_TEST_EQ(6, err.errcode());
21 BOOST_TEST_CSTR_EQ("foo", err.what());
22
23 return boost::report_errors();
24 }