]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/system/test/quick.cpp
import quincy beta 17.1.0
[ceph.git] / ceph / src / boost / libs / system / test / quick.cpp
index ca669832d8af1250f951d8be5e992fbd83f65015..535ce6a753e79d229c376d04b23a2e9b713cd302 100644 (file)
@@ -8,6 +8,7 @@
 
 // See library home page at http://www.boost.org/libs/system
 
+#include <boost/system/system_error.hpp>
 #include <boost/system/error_code.hpp>
 #include <boost/core/lightweight_test.hpp>
 #include <cerrno>
@@ -32,5 +33,10 @@ int main()
 
     BOOST_TEST( bc == bn );
 
+    boost::system::system_error x( bc, "prefix" );
+
+    BOOST_TEST_EQ( x.code(), bc );
+    BOOST_TEST_EQ( std::string( x.what() ), "prefix: " + bc.message() );
+
     return boost::report_errors();
 }