diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index f9b51a0..00bfd49 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -134,6 +134,8 @@ boost_test(TYPE run SOURCES win32_generic_test.cpp) boost_test(TYPE run SOURCES ec_hash_value_test.cpp) +boost_test(TYPE run SOURCES std_interop_test16.cpp) + # result set(BOOST_TEST_COMPILE_FEATURES cxx_std_11) diff --git a/test/Jamfile.v2 b/test/Jamfile.v2 index e34af4b..0ca52cb 100644 --- a/test/Jamfile.v2 +++ b/test/Jamfile.v2 @@ -162,6 +162,8 @@ run win32_generic_test.cpp ; run ec_hash_value_test.cpp ; +run std_interop_test16.cpp ; + # result import ../../config/checks/config : requires ; diff --git a/test/std_interop_test16.cpp b/test/std_interop_test16.cpp new file mode 100644 index 0000000..000fce6 --- /dev/null +++ b/test/std_interop_test16.cpp @@ -0,0 +1,30 @@ +// Copyright 2023 Peter Dimov. +// Distributed under the Boost Software License, Version 1.0. +// http://www.boost.org/LICENSE_1_0.txt + +#include +#include + +#if !defined(BOOST_SYSTEM_HAS_SYSTEM_ERROR) + +BOOST_PRAGMA_MESSAGE( "BOOST_SYSTEM_HAS_SYSTEM_ERROR not defined, test will be skipped" ) +int main() {} + +#else + +#include +#include +#include + +bool init_lwt = (boost::core::lwt_init(), true); + +std::error_category const & cat = boost::asio::error::get_misc_category(); + +int main() +{ + BOOST_TEST_CSTR_EQ( cat.name(), "asio.misc" ); + return boost::report_errors(); +} + + +#endif