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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user