]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/system/test/linux_error_test.cpp
1 // Copyright 2020 Peter Dimov
2 // Distributed under the Boost Software License, Version 1.0.
3 // https://www.boost.org/LICENSE_1_0.txt
5 #include <boost/system/linux_error.hpp>
6 #include <boost/config/pragma_message.hpp>
8 #if !defined(__linux__)
10 BOOST_PRAGMA_MESSAGE( "Skipping test, __linux__ is not defined" )
15 #include <boost/core/lightweight_test.hpp>
19 namespace sys
= boost::system
;
21 sys::error_code ec
= sys::linux_error::dot_dot_error
;
23 BOOST_TEST_EQ( ec
, sys::linux_error::dot_dot_error
);
24 BOOST_TEST_EQ( ec
, sys::error_code( EDOTDOT
, sys::system_category() ) );
26 return boost::report_errors();