diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 758b560..ec0b635 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -112,6 +112,8 @@ boost_test(TYPE run SOURCES system_error_test3.cpp) boost_test(TYPE run SOURCES std_interop_test11.cpp) +boost_test(TYPE run SOURCES ec_wstream_test.cpp) + # result set(BOOST_TEST_COMPILE_FEATURES cxx_std_11) diff --git a/test/Jamfile.v2 b/test/Jamfile.v2 index 48a7dec..ffc34ea 100644 --- a/test/Jamfile.v2 +++ b/test/Jamfile.v2 @@ -134,6 +134,8 @@ run system_error_test3.cpp ; run std_interop_test11.cpp ; +run ec_wstream_test.cpp ; + # result import ../../config/checks/config : requires ; diff --git a/test/ec_wstream_test.cpp b/test/ec_wstream_test.cpp new file mode 100644 index 0000000..1c68a4a --- /dev/null +++ b/test/ec_wstream_test.cpp @@ -0,0 +1,21 @@ +// Copyright 2022 Peter Dimov. +// Distributed under the Boost Software License, Version 1.0. +// http://www.boost.org/LICENSE_1_0.txt + +#include +#include +#include + +namespace sys = boost::system; + +int main() +{ + { + std::wostringstream os; + os << sys::error_code(); + + BOOST_TEST( os.str() == L"system:0" ); + } + + return boost::report_errors(); +}