Accept Windows specific output in system error tests

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@302381 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eric Fiselier
2017-05-07 21:21:07 +00:00
parent 4bd682bf5d
commit b90dc26a99
2 changed files with 2 additions and 2 deletions

View File

@@ -31,7 +31,7 @@ void test_message_for_bad_value() {
errno = E2BIG; // something that message will never generate
const std::error_category& e_cat1 = std::generic_category();
const std::string msg = e_cat1.message(-1);
LIBCPP_ASSERT(msg == "Unknown error -1");
LIBCPP_ASSERT(msg == "Unknown error -1" || msg == "Unknown error");
assert(errno == E2BIG);
}

View File

@@ -31,7 +31,7 @@ void test_message_for_bad_value() {
errno = E2BIG; // something that message will never generate
const std::error_category& e_cat1 = std::system_category();
const std::string msg = e_cat1.message(-1);
LIBCPP_ASSERT(msg == "Unknown error -1");
LIBCPP_ASSERT(msg == "Unknown error -1" || msg == "Unknown error");
assert(errno == E2BIG);
}