From f878f41fe7b72af05b7dabf7f28c6db27feb576c Mon Sep 17 00:00:00 2001 From: Nikita Kniazev Date: Sat, 16 Mar 2019 01:55:18 +0300 Subject: [PATCH] system_category_test: Increase buffer size The message for 5810 error does not fit into buffer on non-English locales. --- test/system_category_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/system_category_test.cpp b/test/system_category_test.cpp index f6aa615..987eb51 100644 --- a/test/system_category_test.cpp +++ b/test/system_category_test.cpp @@ -90,7 +90,7 @@ static void test_message( sys::error_category const & cat, int ev ) { BOOST_TEST_EQ( cat.message( ev ), sys_strerror( ev ) ); - char buffer[ 2048 ]; // yes, really + char buffer[ 4096 ]; // yes, really BOOST_TEST_CSTR_EQ( cat.message( ev, buffer, sizeof( buffer ) ), sys_strerror( ev ).c_str() ); }