[libcxx-commits] [PATCH] D119982: [libc++][AIX] Add AIX error message as expected output
Zarko Todorovski via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Feb 22 11:34:52 PST 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rG7fb02d2752c0: [libc++][AIX] Add AIX error message as expected output (authored by ZarkoCA).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D119982/new/
https://reviews.llvm.org/D119982
Files:
libcxx/test/std/diagnostics/syserr/syserr.errcat/syserr.errcat.objects/generic_category.pass.cpp
libcxx/test/std/diagnostics/syserr/syserr.errcat/syserr.errcat.objects/system_category.pass.cpp
Index: libcxx/test/std/diagnostics/syserr/syserr.errcat/syserr.errcat.objects/system_category.pass.cpp
===================================================================
--- libcxx/test/std/diagnostics/syserr/syserr.errcat/syserr.errcat.objects/system_category.pass.cpp
+++ libcxx/test/std/diagnostics/syserr/syserr.errcat/syserr.errcat.objects/system_category.pass.cpp
@@ -14,7 +14,6 @@
// XFAIL: suse-linux-enterprise-server-11
// XFAIL: use_system_cxx_lib && target={{.+}}-apple-macosx10.{{9|10|11|12}}
-// XFAIL: LIBCXX-AIX-FIXME
#include <system_error>
#include <cassert>
@@ -28,7 +27,11 @@
const std::error_category& e_cat1 = std::system_category();
const std::string msg = e_cat1.message(-1);
// Exact message format varies by platform.
+ #if defined(_AIX)
+ LIBCPP_ASSERT(msg.rfind("Error -1 occurred", 0) == 0);
+ #else
LIBCPP_ASSERT(msg.rfind("Unknown error", 0) == 0);
+ #endif
assert(errno == E2BIG);
}
Index: libcxx/test/std/diagnostics/syserr/syserr.errcat/syserr.errcat.objects/generic_category.pass.cpp
===================================================================
--- libcxx/test/std/diagnostics/syserr/syserr.errcat/syserr.errcat.objects/generic_category.pass.cpp
+++ libcxx/test/std/diagnostics/syserr/syserr.errcat/syserr.errcat.objects/generic_category.pass.cpp
@@ -8,7 +8,6 @@
// XFAIL: suse-linux-enterprise-server-11
// XFAIL: use_system_cxx_lib && target={{.+}}-apple-macosx10.{{9|10|11|12}}
-// XFAIL: LIBCXX-AIX-FIXME
// <system_error>
@@ -28,7 +27,11 @@
const std::error_category& e_cat1 = std::generic_category();
const std::string msg = e_cat1.message(-1);
// Exact message format varies by platform.
+ #if defined(_AIX)
+ LIBCPP_ASSERT(msg.rfind("Error -1 occurred", 0) == 0);
+ #else
LIBCPP_ASSERT(msg.rfind("Unknown error", 0) == 0);
+ #endif
assert(errno == E2BIG);
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D119982.410593.patch
Type: text/x-patch
Size: 1906 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20220222/a26175ad/attachment-0001.bin>
More information about the libcxx-commits
mailing list