From 8ea85f5ad21e486206e6e4223013fd6753ed41aa Mon Sep 17 00:00:00 2001 From: Daniel James Date: Wed, 24 Jan 2018 13:29:52 +0000 Subject: [PATCH] Use error codes that are hopefully present on mingw --- test/hash_system_error_test.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/hash_system_error_test.cpp b/test/hash_system_error_test.cpp index 71eb714..14228d1 100644 --- a/test/hash_system_error_test.cpp +++ b/test/hash_system_error_test.cpp @@ -17,9 +17,9 @@ void test_error_code() { - std::error_code err1a = std::make_error_code(std::errc::address_family_not_supported); - std::error_code err1b = std::make_error_code(std::errc::address_family_not_supported); - std::error_code err2 = std::make_error_code(std::errc::address_in_use); + std::error_code err1a = std::make_error_code(std::errc::argument_list_too_long); + std::error_code err1b = std::make_error_code(std::errc::argument_list_too_long); + std::error_code err2 = std::make_error_code(std::errc::bad_file_descriptor); boost::hash hasher; @@ -30,9 +30,9 @@ void test_error_code() void test_error_condition() { - std::error_condition err1a = std::make_error_condition(std::errc::address_family_not_supported); - std::error_condition err1b = std::make_error_condition(std::errc::address_family_not_supported); - std::error_condition err2 = std::make_error_condition(std::errc::address_in_use); + std::error_condition err1a = std::make_error_condition(std::errc::directory_not_empty); + std::error_condition err1b = std::make_error_condition(std::errc::directory_not_empty); + std::error_condition err2 = std::make_error_condition(std::errc::filename_too_long); boost::hash hasher;